Skip to content

Commit 9a5f650

Browse files
committed
tag stuff related to tracedoctor as hidden
1 parent ef3390b commit 9a5f650

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

client/go/internal/cli/cmd/inspect.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,10 @@ func newInspectProfileCmd(cli *CLI) *cobra.Command {
4545
opts := inspectProfileOptions{}
4646

4747
cmd := &cobra.Command{
48-
Use: "profile",
49-
Short: "Inspect profiling results",
50-
Long: `Inspect profiling results previously obtained by vespa query --profile
51-
52-
Note: this feature is experimental and currently under development
53-
profiling results can also be analyzed with vespa-query-analyzer (part of vespa installation)`,
54-
48+
Use: "profile",
49+
Hidden: true,
50+
Short: "Inspect profiling results",
51+
Long: `Inspect profiling results previously obtained by vespa query --profile`,
5552
RunE: func(cmd *cobra.Command, args []string) error {
5653
return inspectProfile(cli, &opts)
5754
},
@@ -63,9 +60,10 @@ profiling results can also be analyzed with vespa-query-analyzer (part of vespa
6360

6461
func newInspectCmd(cli *CLI) *cobra.Command {
6562
cmd := &cobra.Command{
66-
Use: "inspect",
67-
Short: "Provides insight",
68-
Long: "Provides subcommands to inspect various things in more detail",
63+
Use: "inspect",
64+
Hidden: true,
65+
Short: "Provides insight",
66+
Long: "Provides subcommands to inspect various things in more detail",
6967
}
7068
cmd.AddCommand(newInspectProfileCmd(cli))
7169
return cmd

client/go/internal/cli/cmd/query.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ can be set by the syntax [parameter-name]=[value].`,
6666
cmd.Flags().IntVarP(&opts.queryTimeoutSecs, "timeout", "T", 10, "Timeout for the query in seconds")
6767
cmd.Flags().BoolVarP(&opts.profile, "profile", "", false, "Enable profiling mode (Note: this feature is experimental)")
6868
cmd.Flags().StringVarP(&opts.profileFile, "profile-file", "", "vespa_query_profile_result.json", "Profiling result file")
69+
cmd.Flags().MarkHidden("profile")
70+
cmd.Flags().MarkHidden("profile-file")
6971
cli.bindWaitFlag(cmd, 0, &opts.waitSecs)
7072
return cmd
7173
}

0 commit comments

Comments
 (0)