Skip to content

wip: dagger do action options flags#1902

Closed
jlongtine wants to merge 1 commit intodagger:mainfrom
jlongtine:action-input-flags
Closed

wip: dagger do action options flags#1902
jlongtine wants to merge 1 commit intodagger:mainfrom
jlongtine:action-input-flags

Conversation

@jlongtine
Copy link
Copy Markdown
Contributor

Signed-off-by: Joel Longtine [email protected]

@jlongtine jlongtine linked an issue Mar 28, 2022 that may be closed by this pull request
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2022

Deploy Preview for devel-docs-dagger-io ready!

Name Link
🔨 Latest commit fc0188e
🔍 Latest deploy log https://app.netlify.com/sites/devel-docs-dagger-io/deploys/624327d2229185000888b4f8
😎 Deploy Preview https://deploy-preview-1902--devel-docs-dagger-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jlongtine jlongtine force-pushed the action-input-flags branch 2 times, most recently from e579c69 to 4035cc9 Compare March 28, 2022 22:14
Signed-off-by: Joel Longtine <[email protected]>
@jlongtine jlongtine force-pushed the action-input-flags branch from 4035cc9 to fc0188e Compare March 29, 2022 15:37
@gerhard gerhard changed the title [WIP] dagger do action options flags wip: dagger do action options flags Mar 30, 2022
@gerhard gerhard marked this pull request as draft March 30, 2022 13:58
targetPath := getTargetPath(cmd.Flags().Args())

daggerPlan, err := loadPlan(viper.GetString("plan"))
if err != nil && !viper.GetBool("help") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised help is a catchable flag -- I thought that's why we had to use SetHelpFunc in the first place?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure it's only catchable because I set DisableFlagParsing: true

@jlongtine
Copy link
Copy Markdown
Contributor Author

So... I can't update this PR because the private -> public transition threw my fork off. So, I'm gonna go sort that out, then open a new PR.

@jlongtine
Copy link
Copy Markdown
Contributor Author

Transitioning to #2033

@jlongtine jlongtine closed this Apr 4, 2022
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.

dagger do: expose input fields as command-line flags

4 participants