diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-17 12:20:06 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-17 12:20:06 +0300 |
commit | b6502826e95dfbf7d1681a0bc9c56c6076e3ed7f (patch) | |
tree | 937c3889512f895bcd9b95e5d57e4002e14bffd8 | |
parent | da7e03210fc274c83df11f6873e6af9ee267659f (diff) | |
parent | dfd8c9f938af4841c9589787687b88dcccc685df (diff) |
Merge branch 'eread/edit-help-text-for-list_untracked_repositories-subcommand' into 'master'
Edit help text for list-untracked-repositories subcommand
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6228
Merged-by: Sami Hiltunen <shiltunen@gitlab.com>
Approved-by: Lorena Ciutacu <lciutacu@gitlab.com>
Approved-by: Sami Hiltunen <shiltunen@gitlab.com>
Reviewed-by: Lorena Ciutacu <lciutacu@gitlab.com>
Co-authored-by: Evan Read <eread@gitlab.com>
-rw-r--r-- | internal/cli/praefect/subcmd_list_untracked_repositories.go | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/internal/cli/praefect/subcmd_list_untracked_repositories.go b/internal/cli/praefect/subcmd_list_untracked_repositories.go index a84ac43bc..065a6cc91 100644 --- a/internal/cli/praefect/subcmd_list_untracked_repositories.go +++ b/internal/cli/praefect/subcmd_list_untracked_repositories.go @@ -23,13 +23,21 @@ func newListUntrackedRepositoriesCommand() *cli.Command { return &cli.Command{ Name: "list-untracked-repositories", Usage: "list untracked repositories", - Description: "This command checks whether all repositories on all Gitaly nodes are tracked by Praefect.\n" + - "If a repository is found on the disk, but it is not known to Praefect, then the location of\n" + - "that repository will be written to the standard output stream in JSON format.\n" + - "NOTE:\n" + - "All errors and log messages are written to the standard error stream.\n" + - "The output is produced as the new data appears, it doesn't wait\n" + - "for the completion of the processing to produce the result.\n", + Description: `List repositories located on physical storages but not tracked by Praefect. + +By default, does not list untracked repositories that are newer than 6 hours. + +Returns: + +- Details untracked repositories to stdout, including the repository's relative path, physical storage + name, and virtual storage name. +- All errors and log messages to stderr. The output is produced as new data appears. The command doesn't wait to + to complete processing before producing a result. + +Examples: + +- praefect --config praefect.config.toml list-untracked-repositories +- praefect --config praefect.config.toml list-untracked-repositories --older-than 1s`, HideHelpCommand: true, Action: listUntrackedRepositoriesAction, Flags: []cli.Flag{ |