Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 9609D7819AA for <~alpine/devel@lists.alpinelinux.org>; Thu, 7 Nov 2019 22:46:18 +0000 (UTC) Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1iSpCu-0002Cf-8X; Thu, 07 Nov 2019 14:20:44 -0700 Received: from [65.203.20.178] (helo=usut-alpine-nuc-1.bose.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1iSpCt-0004hk-Dz; Thu, 07 Nov 2019 14:20:44 -0700 From: Rich Ireland To: ~alpine/devel@lists.alpinelinux.org Cc: Rich Ireland Date: Thu, 7 Nov 2019 14:19:47 -0700 Message-Id: <20191107211947.29488-1-r.ireland@computer.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-XM-SPF: eid=1iSpCt-0004hk-Dz;;;mid=<20191107211947.29488-1-r.ireland@computer.org>;;;hst=in01.mta.xmission.com;;;ip=65.203.20.178;;;frm=r.ireland@computer.org;;;spf=softfail X-XM-AID: U2FsdGVkX1/eSWZfqmLerBCIe5SKhdwkHu9CGSkasUM= X-SA-Exim-Connect-IP: 65.203.20.178 X-SA-Exim-Mail-From: r.ireland@computer.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa04.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TooManySym_01,XM_SPF_SoftFail autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * 2.5 XM_SPF_SoftFail SPF-SoftFail * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;~alpine/devel@lists.alpinelinux.org X-Spam-Relay-Country: X-Spam-Timing: total 488 ms - load_scoreonly_sql: 0.14 (0.0%), signal_user_changed: 3.2 (0.7%), b_tie_ro: 2.2 (0.5%), parse: 0.87 (0.2%), extract_message_metadata: 3.1 (0.6%), get_uri_detail_list: 0.96 (0.2%), tests_pri_-1000: 4.1 (0.8%), tests_pri_-950: 1.24 (0.3%), tests_pri_-900: 0.95 (0.2%), tests_pri_-90: 19 (3.8%), check_bayes: 17 (3.5%), b_tokenize: 5 (1.1%), b_tok_get_all: 5 (1.0%), b_comp_prob: 1.89 (0.4%), b_tok_touch_all: 2.6 (0.5%), b_finish: 0.69 (0.1%), tests_pri_0: 440 (90.0%), check_dkim_signature: 0.71 (0.1%), check_dkim_adsp: 102 (20.8%), poll_dns_idle: 98 (20.1%), tests_pri_10: 2.2 (0.4%), tests_pri_500: 7 (1.4%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH] Add missing command_groups flags. X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Some apk commands are missing from the top level help text. --- src/audit.c | 1 + src/search.c | 1 + src/stats.c | 1 + src/ver.c | 1 + 4 files changed, 4 insertions(+) diff --git a/src/audit.c b/src/audit.c index 0c1fbfc..1c3ed39 100644 --- a/src/audit.c +++ b/src/audit.c @@ -350,6 +350,7 @@ static struct apk_applet apk_audit = { .help = "Audit the directories for changes", .arguments = "[directory to audit]...", .open_flags = APK_OPENF_READ|APK_OPENF_NO_SCRIPTS|APK_OPENF_NO_REPOS, + .command_groups = APK_COMMAND_GROUP_REPO, .context_size = sizeof(struct audit_ctx), .optgroups = { &optgroup_global, &optgroup_applet }, .main = audit_main, diff --git a/src/search.c b/src/search.c index 9a71747..0b00a3b 100644 --- a/src/search.c +++ b/src/search.c @@ -209,6 +209,7 @@ static struct apk_applet apk_search = { .help = "Search package by PATTERNs or by indexed dependencies", .arguments = "PATTERN", .open_flags = APK_OPENF_READ | APK_OPENF_NO_STATE, + .command_groups = APK_COMMAND_GROUP_QUERY, .context_size = sizeof(struct search_ctx), .optgroups = { &optgroup_global, &optgroup_applet }, .main = search_main, diff --git a/src/stats.c b/src/stats.c index 5dc2561..032fbbf 100644 --- a/src/stats.c +++ b/src/stats.c @@ -57,6 +57,7 @@ static struct apk_applet stats_applet = { .name = "stats", .help = "Show statistics about repositories and installations", .open_flags = APK_OPENF_READ, + .command_groups = APK_COMMAND_GROUP_REPO, .main = stats_main, }; diff --git a/src/ver.c b/src/ver.c index 3a08359..4097c4d 100644 --- a/src/ver.c +++ b/src/ver.c @@ -202,6 +202,7 @@ static struct apk_applet apk_ver = { .help = "Compare package versions (in installed database vs. available) " "or do tests on literal version strings", .open_flags = APK_OPENF_READ, + .command_groups = APK_COMMAND_GROUP_QUERY, .context_size = sizeof(struct ver_ctx), .optgroups = { &optgroup_global, &optgroup_applet }, .main = ver_main, -- 2.22.0