Skip to content

Commit

Permalink
fix: categories types (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored May 23, 2024
1 parent 3f5bbc4 commit 2a08f1a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const (
)

// CategoryLog is the log flag category.
var CategoryLog = "Logging"
const CategoryLog = "Logging"

// LogFlags are flags that configure logging.
var LogFlags = Flags{
&cli.StringFlag{
Name: FlagLogFormat,
Category: CategoryLog,
Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'",
Usage: "Specify the format of logs. Supported formats: 'logfmt', 'json', 'console'.",
EnvVars: []string{"LOG_FORMAT"},
},
&cli.StringFlag{
Expand Down
4 changes: 2 additions & 2 deletions profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const (
)

// CategoryProfiling is the profiling category.
var CategoryProfiling = "Profiling"
const CategoryProfiling = "Profiling"

// ProfilingFlags are flags that configure profiling.
var ProfilingFlags = Flags{
&cli.StringFlag{
Name: FlagProfilingDSN,
Category: CategoryProfiling,
Usage: "The address to the Pyroscope server, in the format " +
Usage: "The address to the Pyroscope server, in the format: " +
"'http://basic:auth@server:port?token=auth-token&tenantid=tenant-id'.",
EnvVars: []string{"PROFILING_DSN"},
},
Expand Down
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
)

// CategoryStats is the stats flag category.
var CategoryStats = "Stats"
const CategoryStats = "Stats"

// StatsFlags are flags that configure stats.
var StatsFlags = Flags{
Expand Down
2 changes: 1 addition & 1 deletion trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
)

// CategoryTracing is the tracing flag category.
var CategoryTracing = "Tracing"
const CategoryTracing = "Tracing"

// TracingFlags are flags that configure tracing.
var TracingFlags = Flags{
Expand Down

0 comments on commit 2a08f1a

Please sign in to comment.