Skip to content

Commit

Permalink
disables commands that are not documented
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Jan 18, 2021
1 parent 58cf3e7 commit 7c1ca7a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,17 @@ func Start(cfg *config.Config) error {
}

rootCmd := &ffcli.Command{
UsageFunc: printUsage,
Options: options,
ShortUsage: "pyroscope [flags] <subcommand>",
FlagSet: rootFlagSet,
Subcommands: []*ffcli.Command{agentCmd, serverCmd, convertCmd, execCmd},
UsageFunc: printUsage,
Options: options,
ShortUsage: "pyroscope [flags] <subcommand>",
FlagSet: rootFlagSet,
Subcommands: []*ffcli.Command{
// disabled these commands for now, they are not documented and confuse people
// agentCmd,
// convertCmd,
serverCmd,
execCmd,
},
}

agentCmd.Exec = func(_ context.Context, args []string) error {
Expand Down

0 comments on commit 7c1ca7a

Please sign in to comment.