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

Flat package #41

Merged
merged 9 commits into from
May 4, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix revision
  • Loading branch information
takashabe committed Apr 21, 2019
commit 372dfcaf35c44a9cb81f9ec471100b954788f6bf
6 changes: 3 additions & 3 deletions pkg/interfaces/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ type CLI struct {
OutStream io.Writer
ErrStream io.Writer

Version string
Sum string
Version string
Revision string
}

// Run invokes the CLI with the given arguments
func (c *CLI) Run(args []string) int {
fmt.Fprintf(c.OutStream, "btcli Version: %s(%s)\n", c.Version, c.Sum)
fmt.Fprintf(c.OutStream, "btcli Version: %s(%s)\n", c.Version, c.Revision)
fmt.Fprintf(c.OutStream, "Please use `exit` or `Ctrl-D` to exit this program.\n")

conf, err := c.loadConfig(args)
Expand Down