diff options
author | Colin Walters <walters@verbum.org> | 2018-04-07 11:40:53 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-04-11 19:11:07 +0000 |
commit | 9d1dacfcc8f95720bc4b42d7ef0da33f0e6b665f (patch) | |
tree | 82b3160d7a10a085628feece69728f936542897c /src/ostree/ot-builtin-static-delta.c | |
parent | 5215f24e683d65c354cdbb19767dc615b080900b (diff) | |
download | ostree-9d1dacfcc8f95720bc4b42d7ef0da33f0e6b665f.tar.gz |
bin: Hide `admin instutil` command
Add a "hidden command" flag, and use it for `admin instutil` since
I regret adding it, and people should be using the API.
Prep for adding another hidden command as part of staging deployments.
(Down the line we should investigate deduplicating the recursive
command parsing code)
Closes: #1535
Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-builtin-static-delta.c')
-rw-r--r-- | src/ostree/ot-builtin-static-delta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-static-delta.c b/src/ostree/ot-builtin-static-delta.c index d2a343f2..4f9ff2b2 100644 --- a/src/ostree/ot-builtin-static-delta.c +++ b/src/ostree/ot-builtin-static-delta.c @@ -117,7 +117,8 @@ static_delta_usage (char **argv, while (command->name) { - print_func (" %-17s%s\n", command->name, command->description ?: ""); + if ((command->flags & OSTREE_BUILTIN_FLAG_HIDDEN) == 0) + print_func (" %-17s%s\n", command->name, command->description ?: ""); command++; } |