aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg-options.cli
blob: c8a18a51ca25d1468fe4d05ccb60840fe594d02f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// file      : bpkg/bpkg-options.cli
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

include <bpkg/common-options.cli>;

namespace bpkg
{
  class bpkg_options: common_options
  {
    bool --help;
    bool --version;
  };

  class bpkg_commands
  {
    bool help
    {
      "[<topic>]",
      "Show detailed help for a command or help topic.",
      ""
    };

    bool build
    {
      "<pkg>...",
      "Build one or more packages.",
      ""
    };

    bool pkg-verify
    {
      "<archive>",
      "Verify archive is a valid \cb{bpkg} package.",
      ""
    };

    bool pkg-status
    {
      "<pkg>", // [<ver>]: 24
      "Print package status.",
      ""
    };

    bool pkg-fetch
    {
      "<pkg> <ver>",
      "Fetch package archive.",
      ""
    };

    bool pkg-unpack
    {
      "<pkg>",
      "Unpack package archive.",
      ""
    };

    bool pkg-purge
    {
      "<pkg>",
      "Purge package.",
      ""
    };

    bool pkg-configure
    {
      "<pkg>",
      "Configure package.",
      ""
    };

    bool pkg-disfigure
    {
      "<pkg>",
      "Disfigure package.",
      ""
    };

    bool pkg-update
    {
      "<pkg>",
      "Update package.",
      ""
    };

    bool pkg-clean
    {
      "<pkg>",
      "Clean package.",
      ""
    };

    bool cfg-create
    {
      "[<conf>]",
      "Create configuration.",
      ""
    };

    bool rep-add
    {
      "<rep>",
      "Add repository to configuration.",
      ""
    };

    bool rep-fetch
    {
      "",
      "Fetch available packages list.",
      ""
    };

    bool rep-info
    {
      "<rep>",
      "Print information about repository.",
      ""
    };

    bool rep-create
    {
      "[<dir>]",
      "Create repository manifest file.",
      ""
    };
  };

  // Make sure these don't conflict with command names above.
  //
  class bpkg_topics
  {
    bool options
    {
      "Detailed description of common options."
    };
  };
}