Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dagger functions: json output #7178

Open
rsteube opened this issue Apr 24, 2024 · 0 comments
Open

dagger functions: json output #7178

rsteube opened this issue Apr 24, 2024 · 0 comments

Comments

@rsteube
Copy link

rsteube commented Apr 24, 2024

What are you trying to do?

  • Expose functions as json in dagger functions.
[
  {
    "Name": "containerEcho",
    "Description": "example usage: \"dagger call container-echo --string-arg yo stdout\"",
    "ReturnType": {
      "Kind": "OBJECT_KIND",
      "Optional": false,
      "AsObject": {
        "Name": "Container",
        "Functions": null,
        "Fields": null,
        "Constructor": null,
        "SourceModuleName": ""
      },
      "AsInterface": null,
      "AsInput": null,
      "AsList": null
    },
    "Args": [
      {
        "Name": "stringArg",
        "Description": "",
        "TypeDef": {
          "Kind": "STRING_KIND",
          "Optional": false,
          "AsObject": null,
          "AsInterface": null,
          "AsInput": null,
          "AsList": null
        },
        "DefaultValue": ""
      }
    ]
  },
  {
    "Name": "grepDir",
    "Description": "example usage: \"dagger call grep-dir --directory-arg . --pattern GrepDir\"",
    "ReturnType": {
      "Kind": "STRING_KIND",
      "Optional": false,
      "AsObject": null,
      "AsInterface": null,
      "AsInput": null,
      "AsList": null
    },
    "Args": [
      {
        "Name": "directoryArg",
        "Description": "",
        "TypeDef": {
          "Kind": "OBJECT_KIND",
          "Optional": false,
          "AsObject": {
            "Name": "Directory",
            "Functions": null,
            "Fields": null,
            "Constructor": null,
            "SourceModuleName": ""
          },
          "AsInterface": null,
          "AsInput": null,
          "AsList": null
        },
        "DefaultValue": ""
      },
      {
        "Name": "pattern",
        "Description": "",
        "TypeDef": {
          "Kind": "STRING_KIND",
          "Optional": false,
          "AsObject": null,
          "AsInterface": null,
          "AsInput": null,
          "AsList": null
        },
        "DefaultValue": ""
      }
    ]
  }
]

related #6780

Why is this important to you?

shell completion

How are you currently working around this?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant