Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jul 8, 2020
1 parent afdf7e8 commit 8c95a91
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

config.prod.yml
17 changes: 16 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import (
"github.com/spf13/cobra"
)

var config string
// Verbose var
var Verbose bool

// APIKey var
var APIKey string

var rootCmd = &cobra.Command{
Use: "agent",
Expand All @@ -21,6 +25,17 @@ Uptimedog and the agent is in early stages of development, and we'd love to hear
feedback at <https://github.com/Uptimedog/agent>`,
}

func init() {
rootCmd.PersistentFlags().BoolVarP(&Verbose, "verbose", "v", false, "verbose output")
rootCmd.PersistentFlags().StringVarP(
&APIKey,
"api_key",
"k",
"",
"Your Uptimedog API Key",
)
}

// Execute runs cmd tool
func Execute() {
if err := rootCmd.Execute(); err != nil {
Expand Down
10 changes: 0 additions & 10 deletions config.dist.yml

This file was deleted.

0 comments on commit 8c95a91

Please sign in to comment.