Skip to content

Implement spf13/cobra in daemon#6

Open
Kifen wants to merge 12 commits intoSkycoinProject:masterfrom
Kifen:refactor/cobra_cli
Open

Implement spf13/cobra in daemon#6
Kifen wants to merge 12 commits intoSkycoinProject:masterfrom
Kifen:refactor/cobra_cli

Conversation

@Kifen
Copy link
Copy Markdown
Contributor

@Kifen Kifen commented Feb 18, 2020

Fixes #5

@jdknives
Copy link
Copy Markdown
Collaborator

@Kifen could you add a make help target similar to the one in skywire-mainnet please?


var rootCmd = &cobra.Command{
Use: "skywire-peering-daemon",
Short: "A skywire-peering-skywire-peering-daemon",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Redundant description.

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.

Very true. Refactored it to a long description.

@jdknives
Copy link
Copy Markdown
Collaborator

Please add a default target as well like that

.DEFAULT_GOAL := help

Comment thread Makefile
${OPTS} golangci-lint run -c .golangci.yml ./...
# The govet version in golangci-lint is out of date and has spurious warnings, run it separately
${OPTS} go vet -all ./...
# The govet version in golangci-lint is out of date and has spurious warnings
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason for removing ${OPTS} go vet -all ./...?

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.

Not at all. Removed it unknowingly...

Comment thread pkg/daemon/daemon.go Outdated

// Daemon provides configuration parameters for a
// skywire-peering-daemon.
// skywire-peering-skywire-peering-daemon.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

skywire-peering-daemon

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.

Use Cobra for command line interface

3 participants