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

misc: ensure correct indent so linter is happy #49

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ TAGS :=
TESTS := .
TESTFLAGS :=
LDFLAGS := -w -s\
-X github.com/xx4h/hctl/cmd.version=$(shell git rev-parse --abbrev-ref HEAD)-$(GIT_DIRTY)\
-X github.com/xx4h/hctl/cmd.commit=$(GIT_COMMIT)\
-X github.com/xx4h/hctl/cmd.date=$(shell date -Iseconds)
-X github.com/xx4h/hctl/cmd.version=$(shell git rev-parse --abbrev-ref HEAD)-$(GIT_DIRTY)\
-X github.com/xx4h/hctl/cmd.commit=$(GIT_COMMIT)\
-X github.com/xx4h/hctl/cmd.date=$(shell date -Iseconds)
GOFLAGS :=
CGO_ENABLED ?= 0

Expand Down Expand Up @@ -112,7 +112,7 @@ clean:

.PHONY: info
info:
@echo "Version: ${VERSION}"
@echo "Git Tag: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git Tree State: ${GIT_DIRTY}"
@echo "Version: ${VERSION}"
@echo "Git Tag: ${GIT_TAG}"
@echo "Git Commit: ${GIT_COMMIT}"
@echo "Git Tree State: ${GIT_DIRTY}"
2 changes: 2 additions & 0 deletions cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func newCompletionCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "completion [bash|zsh|fish|powershell]",
Short: "Generate completion script",
// editorconfig-checker-disable
Long: fmt.Sprintf(`To load completions:

Bash:
Expand Down Expand Up @@ -70,6 +71,7 @@ func newCompletionCmd() *cobra.Command {
PS> %[1]s completion powershell > %[1]s.ps1
# and source this file from your PowerShell profile.
`, appName),
// editorconfig-checker-enable
DisableFlagsInUseLine: true,
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Expand Down
2 changes: 2 additions & 0 deletions cmd/config_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ import (
)

const (
// editorconfig-checker-disable
configGetExample = `
# Get all config options
hctl config get

# Get a specific config option
hctl config get hub.url
`
// editorconfig-checker-enable
)

func newConfigGetCmd(h *pkg.Hctl, _ io.Writer) *cobra.Command {
Expand Down
2 changes: 2 additions & 0 deletions cmd/config_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ import (
)

const (
// editorconfig-checker-disable
configSetExample = `
# Set config option
hctl config set logging.log_level debug
`
// editorconfig-checker-enable
)

func newConfigSetCmd(h *pkg.Hctl, _ io.Writer) *cobra.Command {
Expand Down
Loading