Skip to content

cli: Use more generic default output for core types in dagger call - #6482

Merged
helderco merged 4 commits into
dagger:mainfrom
helderco:helder/oss-23-cli-update-handling-of-various-core-types
Jan 26, 2024
Merged

helderco merged 4 commits into
dagger:mainfrom
helderco:helder/oss-23-cli-update-handling-of-various-core-types

Conversation

@helderco

@helderco helderco commented Jan 23, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #6359

Added --json option.

Need to detect a scalar typedef, to exclude printing any ID. To limit that just to sync, an alternative is to check last selection in the query builder, but need to expose q.name(). Another alternative is to disallow selecting sync explicitly in favor of ending the chain in the core type. Could also generalize by activating the convenience to all types that support sync instead of explicitly the 3 mages.

I suggest splitting the arbitrary user objects in another issue/PR. We need changes in the query builder to allow selecting siblings.

@helderco
helderco force-pushed the helder/oss-23-cli-update-handling-of-various-core-types branch from 5064d74 to 62aa3c0 Compare January 24, 2024 17:52
@helderco
helderco marked this pull request as ready for review January 24, 2024 17:52
@helderco
helderco force-pushed the helder/oss-23-cli-update-handling-of-various-core-types branch from 62aa3c0 to 3a1bb17 Compare January 24, 2024 18:13
@helderco
helderco requested a review from sipsma January 24, 2024 18:15
Comment thread cmd/dagger/call.go Resolved
@helderco
helderco force-pushed the helder/oss-23-cli-update-handling-of-various-core-types branch 3 times, most recently from e3b8295 to 0ddd695 Compare January 25, 2024 16:57
@helderco
helderco force-pushed the helder/oss-23-cli-update-handling-of-various-core-types branch from 0322eae to f3b10fc Compare January 26, 2024 16:17
@helderco helderco added this to the v0.9.8 milestone Jan 26, 2024
@helderco
helderco merged commit d91ac42 into dagger:main Jan 26, 2024
@helderco
helderco deleted the helder/oss-23-cli-update-handling-of-various-core-types branch January 26, 2024 18:48
@helderco

helderco commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor Author

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

Successfully merging this pull request may close these issues.

CLI: update handling of various core types

2 participants