Repository navigation
Conversation
ea1d2ce to
797666b
Compare
797666b to
27589db
Compare
27589db to
babaf87
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0751d1f to
86e4ba2
Compare
This comment was marked as resolved.
This comment was marked as resolved.
69e2259 to
a89b77a
Compare
7308bbe to
270f1c7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
270f1c7 to
cbe1733
Compare
This comment was marked as resolved.
This comment was marked as resolved.
04ecc57 to
d3d4c27
Compare
|
Reimplemented as |
fa9eb72 to
8dc5cf6
Compare
a63546e to
fec9347
Compare
fec9347 to
9966037
Compare
43b40e1 to
571c218
Compare
jedevc
left a comment
There was a problem hiding this comment.
There's a lot of cli changes, so hopefully okay to not review in lots of details, but I like the changes that simplify the FuncCommand fields, those were tricky before.
Left some small nits, but LGTM.
571c218 to
1d36e77
Compare
We can keep the refactoring that allows the stepping stone to Basically add the mutually exclusive flag (code already in a previous commit in this PR), and set Lines 20 to 29 in 1d36e77 Perhaps at least mark |
I think this is worth doing regardless. I'd also be happier with a I've added this to the next milestone, so we'll definitely get this for the next release - at least then we've got an upper limit on how long we're allowed to keep discussing this for 😆 |
1d36e77 to
daa7a44
Compare
|
I added the "experimental" annotation. This way it's justifiable if we decide to change the DX. Just waiting for the checks to pass before merge. |
daa7a44 to
cf99584
Compare
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
When `call` was initially created it was as part of a few verb based top-level commands (download, up, shell...), where `call` was about just printing the result. These commands were later merged into just `call`, so moved the `call` overrides for printing to `FuncCommand` so that any command that uses function chaining has the same features that `call` has. This refactor was done now because this commit introduces another top-level command that needs `dagger call` capabilities. At the same time, `dagger functions` was implemented as a weird hack that circumvented the function chaining as sub-commands, so we needed a few checks to bypass those. However, `dagger functions` doesn't really need any of the behavior in `FuncCommand` so it's just better to make it a `cobra.Command` instead. Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
cf99584 to
60baf81
Compare
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/dots). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/containers). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
[](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [dagger/dagger](https://togithub.com/dagger/dagger) | patch | `v0.12.4` -> `v0.12.5` | --- ### Release Notes <details> <summary>dagger/dagger (dagger/dagger)</summary> ### [`v0.12.5`](https://togithub.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0125---2024-08-15) [Compare Source](https://togithub.com/dagger/dagger/compare/v0.12.4...v0.12.5) ##### Added - cli: allow calling core functions directly by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/7310](https://togithub.com/dagger/dagger/pull/7310) \ Usage: `dagger core <function>` \ Example: `dagger core container from --address=alpine terminal` Works the same as `dagger call`, but instead of loading a user module, it only uses functions from the core API. Run `dagger core --help` for available functions. *Note that this command is experimental and the DX for calling core functions in the CLI may change in the future.* - New SDK aliases for `elixir` and `php` by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8067](https://togithub.com/dagger/dagger/pull/8067) \ SDKs with experimental module support (elixir and php) can now be accessed using `--sdk=<sdk>` (such as `--sdk=elixir` and `--sdk=php` respectively) instead of the full form `--sdk=github.com/dagger/dagger/sdk/<sdk>@​<version>`. - Add `File.digest` method by [@​TomChv](https://togithub.com/TomChv) in [https://github.com/dagger/dagger/pull/8114](https://togithub.com/dagger/dagger/pull/8114) \ This method provides an efficient way to compute a file's digest, which unlock optimized file comparison or check for file changes. - Bundle CLI in the Engine image so that both parts of Dagger (CLI+Engine) ship as a single artefact by [@​gerhard](https://togithub.com/gerhard) in [https://github.com/dagger/dagger/pull/8147](https://togithub.com/dagger/dagger/pull/8147) ##### Changed - Reimplemented the OpenTelemetry data pipeline to avoid hangs and other complications by [@​vito](https://togithub.com/vito) in [https://github.com/dagger/dagger/pull/7996](https://togithub.com/dagger/dagger/pull/7996) ##### Fixed - Fix `Directory.glob` to correctly handle globs with subdir prefixes by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8110](https://togithub.com/dagger/dagger/pull/8110) \ Previously, attempting to glob with a prefix subdir in a pattern like `<subdir>/*` would not match any files. This should now be fixed, and files in `<subdir>` will now be correctly matched. - Fix `failed to collect IDs from parent fields` error when module objects contain fields with nil values by @​jedevc/[@​sipsma](https://togithub.com/sipsma) in [https://github.com/dagger/dagger/pull/8132](https://togithub.com/dagger/dagger/pull/8132) - Fixed enum lists in modules by [@​helderco](https://togithub.com/helderco) in [https://github.com/dagger/dagger/pull/8096](https://togithub.com/dagger/dagger/pull/8096) - Fixed referring to module's own objects/interfaces/enums in constructor signature by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8115](https://togithub.com/dagger/dagger/pull/8115) \ Previously, modules would fail to launch if they declared a constructor that contained a reference to a type from it's own module in it's args. - Fixed using custom enum types as optional arguments by [@​jedevc](https://togithub.com/jedevc) in [https://github.com/dagger/dagger/pull/8148](https://togithub.com/dagger/dagger/pull/8148) \ Previously, function calls that defined an optional argument would not be callable. - Make retrieving secret from command works on Windows by [@​wingyplus](https://togithub.com/wingyplus) in [https://github.com/dagger/dagger/pull/8121](https://togithub.com/dagger/dagger/pull/8121) ##### What to do next? - Read the [documentation](https://docs.dagger.io) - Join our [Discord server](https://discord.gg/dagger-io) - Follow us on [Twitter](https://twitter.com/dagger_io) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/scottames/daggerverse). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
Fixes #6947
Current implementation uses a top-level command for core functions:
dagger core <function>→ execute a function from the core APIdagger call -m <module> <function>→ execute a function from a moduleHow
Can be run from anywhere as it doesn't require a module to load:
Allows experimentation in the CLI without the need for a module
Can be a nice alternative to
docker run:Without arguments:
Listing:
Next
The
coretop-level command is possibly a stepping stone to select a few core functions as their own top-level commands. That'll open up creating more commands by implementing them via the API rather than client side. \cc @sipsma