packages feed

hydra-kernel-0.18.1: hydra-kernel-json/hydra/core/dsl/lib/system.json

{
  "name": "hydra.core.dsl.lib.system",
  "metadata": {"description": "DSL functions for hydra.core.lib.system", "comments": [], "seeAlso": [], "provisions": []},
  "dependencies": [
    {"module": "hydra.core.lib.system"},
    {"module": "hydra.core.typed"},
    {"module": "hydra.core.encode.lib.system"},
    {"module": "hydra.core.decode.lib.system"},
    {"module": "hydra.core.paths"},
    {"module": "hydra.core.ast"},
    {"module": "hydra.core.coders"},
    {"module": "hydra.core.model"},
    {"module": "hydra.core.diff"},
    {"module": "hydra.core.docs"},
    {"module": "hydra.core.error.checking"},
    {"module": "hydra.core.error.model"},
    {"module": "hydra.core.error.file"},
    {"module": "hydra.core.error.packaging"},
    {"module": "hydra.core.error.system"},
    {"module": "hydra.core.errors"},
    {"module": "hydra.core.file"},
    {"module": "hydra.core.graph"},
    {"module": "hydra.core.json.model"},
    {"module": "hydra.core.markdown"},
    {"module": "hydra.core.packaging"},
    {"module": "hydra.core.parsing"},
    {"module": "hydra.core.query"},
    {"module": "hydra.core.regex"},
    {"module": "hydra.core.relational"},
    {"module": "hydra.core.system"},
    {"module": "hydra.core.tabular"},
    {"module": "hydra.core.testing"},
    {"module": "hydra.core.time"},
    {"module": "hydra.core.topology"},
    {"module": "hydra.core.typing"},
    {"module": "hydra.core.util"},
    {"module": "hydra.core.validation"},
    {"module": "hydra.core.variants"},
    {"module": "hydra.core.dsl.paths"},
    {"module": "hydra.core.dsl.ast"},
    {"module": "hydra.core.dsl.coders"},
    {"module": "hydra.core.dsl.model"},
    {"module": "hydra.core.dsl.diff"},
    {"module": "hydra.core.dsl.docs"},
    {"module": "hydra.core.dsl.error.checking"},
    {"module": "hydra.core.dsl.error.model"},
    {"module": "hydra.core.dsl.error.file"},
    {"module": "hydra.core.dsl.error.packaging"},
    {"module": "hydra.core.dsl.error.system"},
    {"module": "hydra.core.dsl.errors"},
    {"module": "hydra.core.dsl.file"},
    {"module": "hydra.core.dsl.graph"},
    {"module": "hydra.core.dsl.json.model"},
    {"module": "hydra.core.dsl.markdown"},
    {"module": "hydra.core.dsl.packaging"},
    {"module": "hydra.core.dsl.parsing"},
    {"module": "hydra.core.dsl.query"},
    {"module": "hydra.core.dsl.regex"},
    {"module": "hydra.core.dsl.relational"},
    {"module": "hydra.core.dsl.system"},
    {"module": "hydra.core.dsl.tabular"},
    {"module": "hydra.core.dsl.testing"},
    {"module": "hydra.core.dsl.time"},
    {"module": "hydra.core.dsl.topology"},
    {"module": "hydra.core.dsl.typed"},
    {"module": "hydra.core.dsl.typing"},
    {"module": "hydra.core.dsl.util"},
    {"module": "hydra.core.dsl.validation"},
    {"module": "hydra.core.dsl.variants"}],
  "definitions": [
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.execute",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.system.Command"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "effect": {
                    "either": {"left": {"variable": "hydra.core.error.system.SystemError"}, "right": {"variable": "hydra.core.system.ProcessResult"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "command",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.system.Command"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.execute"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "command"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.execute"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.exit",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.system.StatusCode"}}},
              "isLazy": false}],
          "result": {"type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"effect": "unit"}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "code",
                "domain": {
                  "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "hydra.core.system.StatusCode"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.exit"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "code"}}}}]}}}}}}}}},
            "annotation": {
              "map": [{"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.exit"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.getEnvironment",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"effect": {"map": {"keys": {"variable": "hydra.core.system.EnvironmentVariable"}, "values": {"literal": "string"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedTerm",
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "variable",
                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.getEnvironment"}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.getEnvironment"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.getEnvironmentVariable",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {
                "application": {
                  "function": {"variable": "hydra.core.typed.TypedTerm"},
                  "argument": {"variable": "hydra.core.system.EnvironmentVariable"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"effect": {"optional": {"literal": "string"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "name",
                "domain": {
                  "application": {
                    "function": {"variable": "hydra.core.typed.TypedTerm"},
                    "argument": {"variable": "hydra.core.system.EnvironmentVariable"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {
                                          "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.getEnvironmentVariable"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "name"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.getEnvironmentVariable"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.getTime",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"effect": {"variable": "hydra.core.time.Timespec"}}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedTerm",
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "variable",
                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.getTime"}}}}}}}}},
            "annotation": {
              "map": [
                {"key": {"variable": "description"}, "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.getTime"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.getWorkingDirectory",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {
                  "effect": {
                    "either": {"left": {"variable": "hydra.core.error.system.SystemError"}, "right": {"variable": "hydra.core.file.FilePath"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedTerm",
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "variable",
                      "term": {
                        "wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.getWorkingDirectory"}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.getWorkingDirectory"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.readStdin",
        "signature": {
          "typeParameters": [],
          "parameters": [],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.system.SystemError"}, "right": {"literal": "binary"}}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "wrap": {
                "typeName": "hydra.core.typed.TypedTerm",
                "body": {
                  "inject": {
                    "typeName": "hydra.core.model.Term",
                    "field": {
                      "name": "variable",
                      "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.readStdin"}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.readStdin"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.writeStderr",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.system.SystemError"}, "right": "unit"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "bytes",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.writeStderr"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "bytes"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.writeStderr"}}}]}}}}},
    {
      "term": {
        "name": "hydra.core.dsl.lib.system.writeStdout",
        "signature": {
          "typeParameters": [],
          "parameters": [
            {
              "name": "arg0",
              "type": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
              "isLazy": false}],
          "result": {
            "type": {
              "application": {
                "function": {"variable": "hydra.core.typed.TypedTerm"},
                "argument": {"effect": {"either": {"left": {"variable": "hydra.core.error.system.SystemError"}, "right": "unit"}}}}}}},
        "body": {
          "annotated": {
            "body": {
              "lambda": {
                "parameter": "bytes",
                "domain": {"application": {"function": {"variable": "hydra.core.typed.TypedTerm"}, "argument": {"literal": "binary"}}},
                "body": {
                  "wrap": {
                    "typeName": "hydra.core.typed.TypedTerm",
                    "body": {
                      "inject": {
                        "typeName": "hydra.core.model.Term",
                        "field": {
                          "name": "application",
                          "term": {
                            "record": {
                              "typeName": "hydra.core.model.Application",
                              "fields": [
                                {
                                  "name": "function",
                                  "term": {
                                    "inject": {
                                      "typeName": "hydra.core.model.Term",
                                      "field": {
                                        "name": "variable",
                                        "term": {"wrap": {"typeName": "hydra.core.model.Name", "body": {"literal": {"string": "hydra.core.lib.system.writeStdout"}}}}}}}},
                                {
                                  "name": "argument",
                                  "term": {"application": {"function": {"unwrap": "hydra.core.typed.TypedTerm"}, "argument": {"variable": "bytes"}}}}]}}}}}}}}},
            "annotation": {
              "map": [
                {
                  "key": {"variable": "description"},
                  "value": {"literal": {"string": "DSL reference to hydra.core.lib.system.writeStdout"}}}]}}}}}]}