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

feat(help): Add target-syntax help topic #13

Merged
merged 1 commit into from
Sep 4, 2021
Merged

feat(help): Add target-syntax help topic #13

merged 1 commit into from
Sep 4, 2021

Conversation

alexeagle
Copy link
Member

No description provided.

@@ -37,7 +38,7 @@ func NewRootCmd(streams ioutils.Streams, defaultInteractive bool) *cobra.Command
var interactive bool
cmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.aspect.yaml)")
cmd.PersistentFlags().BoolVar(&interactive, "interactive", defaultInteractive, "Interactive mode (e.g. prompts for user input)")

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like your Go extension is not formatting the file automatically?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm more interested in what gofmt is doing in the pre-commit...

% pre-commit run --all-files

go fmt...................................................................Failed
- hook id: go-fmt
- exit code: 1

Go files must be formatted with gofmt. Please run:
  bazel run -- @go_sdk//:bin/gofmt -w /Users/alexeagle/Projects/aspect-cli/docs/help/topics/main.go
Go files must be formatted with gofmt. Please run:
  bazel run -- @go_sdk//:bin/gofmt -w /Users/alexeagle/Projects/aspect-cli/cmd/aspect/root.g

I'll run those and keep an eye on this, if it's not triggering on the right files...

@f0rmiga f0rmiga merged commit 942f40f into main Sep 4, 2021
@f0rmiga f0rmiga deleted the target-syntax branch September 4, 2021 02:12
@mattem
Copy link
Member

mattem commented Sep 4, 2021

Oh this is a first-class verb? I was expecting it under help or docs perhaps, this will get pretty crowded.

@alexeagle
Copy link
Member Author

It's not first class, only shows under help, because it has no Run. It's a cobra thing. See the link I put there

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.

3 participants