Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
musanmaz committed Jun 26, 2024
1 parent 8b3ab81 commit 82bd959
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ const version = "1.0.3"
var consulAddr string

var rootCmd = &cobra.Command{
Use: "consul-uploader",
Use: "consul-uploader [directory]",
Short: "Upload config files to Consul KV store",
Long: `Consul Uploader is a CLI tool used to upload configuration files from a specified directory to the Consul KV store.
Available commands are:
- version: Print the version number of Consul Uploader`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
if len(args) < 1 {
fmt.Println("Please provide the directory path")
os.Exit(1)
}
directory := args[0]
processDirectory(directory)
},
Expand Down

0 comments on commit 82bd959

Please sign in to comment.