-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hide unreleased features in prod build
- Loading branch information
Showing
7 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,8 +63,9 @@ var ( | |
} | ||
return v | ||
}() | ||
defaultApiAddr = "https://api.humanlog.io" | ||
defaultBaseSiteAddr = "https://humanlog.io" | ||
defaultApiAddr = "https://api.humanlog.io" | ||
defaultBaseSiteAddr = "https://humanlog.io" | ||
hideUnreleasedFeatures = "" | ||
|
||
huhTheme = huh.ThemeCatppuccin() | ||
) | ||
|
@@ -194,21 +195,25 @@ func newApp() *cli.App { | |
|
||
app := cli.NewApp() | ||
app.Author = "humanlog.io" | ||
app.Email = "[email protected]" | ||
app.Email = "[email protected]" | ||
app.Name = "humanlog" | ||
app.Version = semverVersion.String() | ||
app.Usage = "reads structured logs from stdin, makes them pretty on stdout!" | ||
app.Description = `humanlog parses logs and makes them easier to read and search. | ||
When invoked with no argument, it consumes stdin and parses it, | ||
attempts to make it prettier on stdout. It also allows searching | ||
attempting to make detected logs prettier on stdout.` | ||
if hideUnreleasedFeatures != "true" { | ||
app.Description += ` | ||
It also allows searching | ||
the logs that were parsed, both in a TUI by pressing "s" or in a | ||
webapp by pressing "space". | ||
If registered to ingest logs via "humanlog machine register" logs | ||
will be saved to humanlog.io for vizualization, searching and | ||
analysis. | ||
` | ||
} | ||
|
||
var ( | ||
ctx context.Context | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters