Skip to content

Commit

Permalink
example/cmd/microctl: Eliminate verbosity flags from microcluster cli…
Browse files Browse the repository at this point in the history
…ents

These are only used by the daemon

Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Jul 29, 2024
1 parent 056480c commit 4a68d40
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions example/cmd/microctl/cluster_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (c *cmdClusterMembersList) run(cmd *cobra.Command, args []string) error {
}

// Get all state information for MicroCluster.
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down Expand Up @@ -179,7 +179,7 @@ func (c *cmdClusterMemberRemove) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down Expand Up @@ -212,7 +212,7 @@ func (c *cmdClusterEdit) command() *cobra.Command {
}

func (c *cmdClusterEdit) run(cmd *cobra.Command, args []string) error {
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion example/cmd/microctl/extended_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c *cmdExtended) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion example/cmd/microctl/main_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *cmdInit) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return fmt.Errorf("Unable to configure MicroCluster: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion example/cmd/microctl/shutdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *cmdShutdown) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion example/cmd/microctl/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *cmdSQL) run(cmd *cobra.Command, args []string) error {
}
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions example/cmd/microctl/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (c *cmdTokensAdd) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down Expand Up @@ -102,7 +102,7 @@ func (c *cmdTokensList) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down Expand Up @@ -142,7 +142,7 @@ func (c *cmdTokensRevoke) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion example/cmd/microctl/waitready.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (c *cmdWaitready) run(cmd *cobra.Command, args []string) error {
return cmd.Help()
}

m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir, Verbose: c.common.FlagLogVerbose, Debug: c.common.FlagLogDebug})
m, err := microcluster.App(microcluster.Args{StateDir: c.common.FlagStateDir})
if err != nil {
return err
}
Expand Down

0 comments on commit 4a68d40

Please sign in to comment.