@peernova/cuneiform-sf 1.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +36 -0
- package/README.md +185 -0
- package/lib/commands/cuneiform/about.d.ts +13 -0
- package/lib/commands/cuneiform/about.js +26 -0
- package/lib/commands/cuneiform/about.js.map +1 -0
- package/lib/commands/hello/world.d.ts +14 -0
- package/lib/commands/hello/world.js +27 -0
- package/lib/commands/hello/world.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/messages/cuneiform.about.md +19 -0
- package/messages/hello.world.md +29 -0
- package/oclif.lock +8364 -0
- package/oclif.manifest.json +118 -0
- package/package.json +195 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Cuneiform CLI - Proprietary Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 PeerNova, Inc. All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS
|
|
6
|
+
|
|
7
|
+
1. GRANT OF LICENSE
|
|
8
|
+
This software is licensed, not sold. Subject to a valid Cuneiform
|
|
9
|
+
subscription agreement, PeerNova, Inc. grants you a limited, non-exclusive,
|
|
10
|
+
non-transferable license to use this software solely in connection
|
|
11
|
+
with Cuneiform products.
|
|
12
|
+
|
|
13
|
+
2. RESTRICTIONS
|
|
14
|
+
You may NOT:
|
|
15
|
+
- Modify, adapt, or create derivative works
|
|
16
|
+
- Reverse engineer, decompile, or disassemble
|
|
17
|
+
- Remove or alter proprietary notices
|
|
18
|
+
- Redistribute, sublicense, or transfer
|
|
19
|
+
- Use without a valid Cuneiform subscription
|
|
20
|
+
|
|
21
|
+
3. NO WARRANTY
|
|
22
|
+
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
23
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
24
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
25
|
+
|
|
26
|
+
4. LIMITATION OF LIABILITY
|
|
27
|
+
IN NO EVENT SHALL PEERNOVA, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
29
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
30
|
+
DEALINGS IN THE SOFTWARE.
|
|
31
|
+
|
|
32
|
+
5. TERMINATION
|
|
33
|
+
This license terminates automatically if you violate any terms
|
|
34
|
+
or if your Cuneiform subscription expires or is terminated.
|
|
35
|
+
|
|
36
|
+
For licensing inquiries: legal@peernova.com
|
package/README.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# @peernova/cuneiform-sf
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@peernova/cuneiform-sf) [](https://npmjs.org/package/@peernova/cuneiform-sf) [](https://raw.githubusercontent.com/salesforcecli/@peernova/cuneiform-sf/main/LICENSE.txt)
|
|
4
|
+
|
|
5
|
+
## Using the template
|
|
6
|
+
|
|
7
|
+
This repository provides a template for creating a plugin for the Salesforce CLI. To convert this template to a working plugin:
|
|
8
|
+
|
|
9
|
+
1. Please get in touch with the Platform CLI team. We want to help you develop your plugin.
|
|
10
|
+
2. Generate your plugin:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
sf plugins install dev
|
|
14
|
+
sf dev generate plugin
|
|
15
|
+
|
|
16
|
+
git init -b main
|
|
17
|
+
git add . && git commit -m "chore: initial commit"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
3. Create your plugin's repo in the salesforcecli github org
|
|
21
|
+
4. When you're ready, replace the contents of this README with the information you want.
|
|
22
|
+
|
|
23
|
+
## Learn about `sf` plugins
|
|
24
|
+
|
|
25
|
+
Salesforce CLI plugins are based on the [oclif plugin framework](<(https://oclif.io/docs/introduction.html)>). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
|
|
26
|
+
|
|
27
|
+
This repository contains a lot of additional scripts and tools to help with general Salesforce node development and enforce coding standards. You should familiarize yourself with some of the [node developer packages](#tooling) used by Salesforce.
|
|
28
|
+
|
|
29
|
+
Additionally, there are some additional tests that the Salesforce CLI will enforce if this plugin is ever bundled with the CLI. These test are included by default under the `posttest` script and it is required to keep these tests active in your plugin if you plan to have it bundled.
|
|
30
|
+
|
|
31
|
+
### Tooling
|
|
32
|
+
|
|
33
|
+
- [@salesforce/core](https://github.com/forcedotcom/sfdx-core)
|
|
34
|
+
- [@salesforce/kit](https://github.com/forcedotcom/kit)
|
|
35
|
+
- [@salesforce/sf-plugins-core](https://github.com/salesforcecli/sf-plugins-core)
|
|
36
|
+
- [@salesforce/ts-types](https://github.com/forcedotcom/ts-types)
|
|
37
|
+
- [@salesforce/ts-sinon](https://github.com/forcedotcom/ts-sinon)
|
|
38
|
+
- [@salesforce/dev-config](https://github.com/forcedotcom/dev-config)
|
|
39
|
+
- [@salesforce/dev-scripts](https://github.com/forcedotcom/dev-scripts)
|
|
40
|
+
|
|
41
|
+
### Hooks
|
|
42
|
+
|
|
43
|
+
For cross clouds commands, e.g. `sf env list`, we utilize [oclif hooks](https://oclif.io/docs/hooks) to get the relevant information from installed plugins.
|
|
44
|
+
|
|
45
|
+
This plugin includes sample hooks in the [src/hooks directory](src/hooks). You'll just need to add the appropriate logic. You can also delete any of the hooks if they aren't required for your plugin.
|
|
46
|
+
|
|
47
|
+
# Everything past here is only a suggestion as to what should be in your specific plugin's description
|
|
48
|
+
|
|
49
|
+
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
|
|
50
|
+
|
|
51
|
+
We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific version or tag if needed.
|
|
52
|
+
|
|
53
|
+
## Install
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
sf plugins install @peernova/cuneiform-sf@x.y.z
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Issues
|
|
60
|
+
|
|
61
|
+
Please report any issues at https://github.com/forcedotcom/cli/issues
|
|
62
|
+
|
|
63
|
+
## Contributing
|
|
64
|
+
|
|
65
|
+
1. Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
66
|
+
2. Create a new issue before starting your project so that we can keep track of
|
|
67
|
+
what you are trying to add/fix. That way, we can also offer suggestions or
|
|
68
|
+
let you know if there is already an effort in progress.
|
|
69
|
+
3. Fork this repository.
|
|
70
|
+
4. [Build the plugin locally](#build)
|
|
71
|
+
5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
|
|
72
|
+
6. Edit the code in your fork.
|
|
73
|
+
7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
|
|
74
|
+
8. Sign CLA (see [CLA](#cla) below).
|
|
75
|
+
9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
|
|
76
|
+
|
|
77
|
+
### CLA
|
|
78
|
+
|
|
79
|
+
External contributors will be required to sign a Contributor's License
|
|
80
|
+
Agreement. You can do so by going to https://cla.salesforce.com/sign-cla.
|
|
81
|
+
|
|
82
|
+
### Build
|
|
83
|
+
|
|
84
|
+
To build the plugin locally, make sure to have yarn installed and run the following commands:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Clone the repository
|
|
88
|
+
git clone git@github.com:salesforcecli/@peernova/cuneiform-sf
|
|
89
|
+
|
|
90
|
+
# Install the dependencies and compile
|
|
91
|
+
yarn && yarn build
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Run using local run file.
|
|
98
|
+
./bin/dev hello world
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Link your plugin to the sf cli
|
|
105
|
+
sf plugins link .
|
|
106
|
+
# To verify
|
|
107
|
+
sf plugins
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Commands
|
|
111
|
+
|
|
112
|
+
<!-- commands -->
|
|
113
|
+
|
|
114
|
+
- [`sf cuneiform about`](#sf-cuneiform-about)
|
|
115
|
+
- [`sf hello world`](#sf-hello-world)
|
|
116
|
+
|
|
117
|
+
## `sf cuneiform about`
|
|
118
|
+
|
|
119
|
+
Summary of a command.
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
USAGE
|
|
123
|
+
$ sf cuneiform about [--json] [--flags-dir <value>] [-n <value>]
|
|
124
|
+
|
|
125
|
+
FLAGS
|
|
126
|
+
-n, --name=<value> Description of a flag.
|
|
127
|
+
|
|
128
|
+
GLOBAL FLAGS
|
|
129
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
130
|
+
--json Format output as json.
|
|
131
|
+
|
|
132
|
+
DESCRIPTION
|
|
133
|
+
Summary of a command.
|
|
134
|
+
|
|
135
|
+
More information about a command. Don't repeat the summary.
|
|
136
|
+
|
|
137
|
+
EXAMPLES
|
|
138
|
+
$ sf cuneiform about
|
|
139
|
+
|
|
140
|
+
FLAG DESCRIPTIONS
|
|
141
|
+
-n, --name=<value> Description of a flag.
|
|
142
|
+
|
|
143
|
+
More information about a flag. Don't repeat the summary.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
_See code: [src/commands/cuneiform/about.ts](https://github.com/PeerNova-Solutions/cuneiform-cli/blob/1.0.1-beta.2/src/commands/cuneiform/about.ts)_
|
|
147
|
+
|
|
148
|
+
## `sf hello world`
|
|
149
|
+
|
|
150
|
+
Say hello.
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
USAGE
|
|
154
|
+
$ sf hello world [--json] [--flags-dir <value>] [-n <value>]
|
|
155
|
+
|
|
156
|
+
FLAGS
|
|
157
|
+
-n, --name=<value> [default: World] The name of the person you'd like to say hello to.
|
|
158
|
+
|
|
159
|
+
GLOBAL FLAGS
|
|
160
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
161
|
+
--json Format output as json.
|
|
162
|
+
|
|
163
|
+
DESCRIPTION
|
|
164
|
+
Say hello.
|
|
165
|
+
|
|
166
|
+
Say hello either to the world or someone you know.
|
|
167
|
+
|
|
168
|
+
EXAMPLES
|
|
169
|
+
Say hello to the world:
|
|
170
|
+
|
|
171
|
+
$ sf hello world
|
|
172
|
+
|
|
173
|
+
Say hello to someone you know:
|
|
174
|
+
|
|
175
|
+
$ sf hello world --name Astro
|
|
176
|
+
|
|
177
|
+
FLAG DESCRIPTIONS
|
|
178
|
+
-n, --name=<value> The name of the person you'd like to say hello to.
|
|
179
|
+
|
|
180
|
+
This person can be anyone in the world!
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
_See code: [src/commands/hello/world.ts](https://github.com/PeerNova-Solutions/cuneiform-cli/blob/1.0.1-beta.2/src/commands/hello/world.ts)_
|
|
184
|
+
|
|
185
|
+
<!-- commandsstop -->
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type CuneiformAboutResult = {
|
|
3
|
+
path: string;
|
|
4
|
+
};
|
|
5
|
+
export default class CuneiformAbout extends SfCommand<CuneiformAboutResult> {
|
|
6
|
+
static readonly summary: string;
|
|
7
|
+
static readonly description: string;
|
|
8
|
+
static readonly examples: string[];
|
|
9
|
+
static readonly flags: {
|
|
10
|
+
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<CuneiformAboutResult>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { Messages } from '@salesforce/core';
|
|
3
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
4
|
+
const messages = Messages.loadMessages('@peernova/cuneiform-sf', 'cuneiform.about');
|
|
5
|
+
export default class CuneiformAbout extends SfCommand {
|
|
6
|
+
static summary = messages.getMessage('summary');
|
|
7
|
+
static description = messages.getMessage('description');
|
|
8
|
+
static examples = messages.getMessages('examples');
|
|
9
|
+
static flags = {
|
|
10
|
+
name: Flags.string({
|
|
11
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
12
|
+
description: messages.getMessage('flags.name.description'),
|
|
13
|
+
char: 'n',
|
|
14
|
+
required: false,
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { flags } = await this.parse(CuneiformAbout);
|
|
19
|
+
const name = flags.name ?? 'world';
|
|
20
|
+
this.log(`hello ${name} from src/commands/cuneiform/about.ts`);
|
|
21
|
+
return {
|
|
22
|
+
path: 'src/commands/cuneiform/about.ts',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=about.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about.js","sourceRoot":"","sources":["../../../src/commands/cuneiform/about.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC;AAMpF,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAA+B;IAClE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YAC1D,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAEnD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;QACnC,IAAI,CAAC,GAAG,CAAC,SAAS,IAAI,uCAAuC,CAAC,CAAC;QAC/D,OAAO;YACL,IAAI,EAAE,iCAAiC;SACxC,CAAC;IACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type HelloWorldResult = {
|
|
3
|
+
name: string;
|
|
4
|
+
time: string;
|
|
5
|
+
};
|
|
6
|
+
export default class World extends SfCommand<HelloWorldResult> {
|
|
7
|
+
static readonly summary: string;
|
|
8
|
+
static readonly description: string;
|
|
9
|
+
static readonly examples: string[];
|
|
10
|
+
static readonly flags: {
|
|
11
|
+
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<HelloWorldResult>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { Messages } from '@salesforce/core';
|
|
3
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
4
|
+
const messages = Messages.loadMessages('@peernova/cuneiform-sf', 'hello.world');
|
|
5
|
+
export default class World extends SfCommand {
|
|
6
|
+
static summary = messages.getMessage('summary');
|
|
7
|
+
static description = messages.getMessage('description');
|
|
8
|
+
static examples = messages.getMessages('examples');
|
|
9
|
+
static flags = {
|
|
10
|
+
name: Flags.string({
|
|
11
|
+
char: 'n',
|
|
12
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
13
|
+
description: messages.getMessage('flags.name.description'),
|
|
14
|
+
default: 'World',
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { flags } = await this.parse(World);
|
|
19
|
+
const time = new Date().toDateString();
|
|
20
|
+
this.log(messages.getMessage('info.hello', [flags.name, time]));
|
|
21
|
+
return {
|
|
22
|
+
name: flags.name,
|
|
23
|
+
time,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=world.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world.js","sourceRoot":"","sources":["../../../src/commands/hello/world.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,aAAa,CAAC,CAAC;AAOhF,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAA2B;IACrD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAClD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YAC1D,OAAO,EAAE,OAAO;SACjB,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC;QACvC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,IAAI;SACL,CAAC;IACJ,CAAC"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Summary of a command.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
More information about a command. Don't repeat the summary.
|
|
8
|
+
|
|
9
|
+
# flags.name.summary
|
|
10
|
+
|
|
11
|
+
Description of a flag.
|
|
12
|
+
|
|
13
|
+
# flags.name.description
|
|
14
|
+
|
|
15
|
+
More information about a flag. Don't repeat the summary.
|
|
16
|
+
|
|
17
|
+
# examples
|
|
18
|
+
|
|
19
|
+
- <%= config.bin %> <%= command.id %>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Say hello.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Say hello either to the world or someone you know.
|
|
8
|
+
|
|
9
|
+
# flags.name.summary
|
|
10
|
+
|
|
11
|
+
The name of the person you'd like to say hello to.
|
|
12
|
+
|
|
13
|
+
# flags.name.description
|
|
14
|
+
|
|
15
|
+
This person can be anyone in the world!
|
|
16
|
+
|
|
17
|
+
# examples
|
|
18
|
+
|
|
19
|
+
- Say hello to the world:
|
|
20
|
+
|
|
21
|
+
<%= config.bin %> <%= command.id %>
|
|
22
|
+
|
|
23
|
+
- Say hello to someone you know:
|
|
24
|
+
|
|
25
|
+
<%= config.bin %> <%= command.id %> --name Astro
|
|
26
|
+
|
|
27
|
+
# info.hello
|
|
28
|
+
|
|
29
|
+
Hello %s at %s.
|