meocli 0.0.0

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/README.md ADDED
@@ -0,0 +1,411 @@
1
+ # memecli
2
+
3
+ A new CLI generated with oclif
4
+
5
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6
+ [![Version](https://img.shields.io/npm/v/memecli.svg)](https://npmjs.org/package/memecli)
7
+ [![Downloads/week](https://img.shields.io/npm/dw/memecli.svg)](https://npmjs.org/package/memecli)
8
+
9
+ <!-- toc -->
10
+ * [memecli](#memecli)
11
+ * [Dev](#dev)
12
+ * [Usage](#usage)
13
+ * [Commands](#commands)
14
+ <!-- tocstop -->
15
+
16
+ # Dev
17
+
18
+ ```sh-session
19
+ $ pnpm run dev hello world
20
+ $ pnpm run prod hello world
21
+ $ pnpm run dev hello foo -f bar
22
+ $ pnpm login
23
+ $ pnpm build
24
+ $ pnpm publish
25
+ ```
26
+
27
+ # Usage
28
+
29
+ <!-- usage -->
30
+ ```sh-session
31
+ $ npm install -g meocli
32
+ $ me COMMAND
33
+ running command...
34
+ $ me (--version)
35
+ meocli/0.0.0 win32-x64 node-v24.12.0
36
+ $ me --help [COMMAND]
37
+ USAGE
38
+ $ me COMMAND
39
+ ...
40
+ ```
41
+ <!-- usagestop -->
42
+
43
+ # Commands
44
+
45
+ <!-- commands -->
46
+ * [`me hello PERSON`](#me-hello-person)
47
+ * [`me hello world`](#me-hello-world)
48
+ * [`me help [COMMAND]`](#me-help-command)
49
+ * [`me plugins`](#me-plugins)
50
+ * [`me plugins add PLUGIN`](#me-plugins-add-plugin)
51
+ * [`me plugins:inspect PLUGIN...`](#me-pluginsinspect-plugin)
52
+ * [`me plugins install PLUGIN`](#me-plugins-install-plugin)
53
+ * [`me plugins link PATH`](#me-plugins-link-path)
54
+ * [`me plugins remove [PLUGIN]`](#me-plugins-remove-plugin)
55
+ * [`me plugins reset`](#me-plugins-reset)
56
+ * [`me plugins uninstall [PLUGIN]`](#me-plugins-uninstall-plugin)
57
+ * [`me plugins unlink [PLUGIN]`](#me-plugins-unlink-plugin)
58
+ * [`me plugins update`](#me-plugins-update)
59
+
60
+ ## `me hello PERSON`
61
+
62
+ Say hello
63
+
64
+ ```
65
+ USAGE
66
+ $ me hello PERSON -f <value>
67
+
68
+ ARGUMENTS
69
+ PERSON Person to say hello to
70
+
71
+ FLAGS
72
+ -f, --from=<value> (required) Who is saying hello
73
+
74
+ DESCRIPTION
75
+ Say hello
76
+
77
+ EXAMPLES
78
+ $ me hello friend --from oclif
79
+ hello friend from oclif! (./src/commands/hello/index.ts)
80
+ ```
81
+
82
+ _See code: [src/commands/hello/index.ts](https://github.com/meme2046/meocli/blob/v0.0.0/src/commands/hello/index.ts)_
83
+
84
+ ## `me hello world`
85
+
86
+ Say hello world
87
+
88
+ ```
89
+ USAGE
90
+ $ me hello world
91
+
92
+ DESCRIPTION
93
+ Say hello world
94
+
95
+ EXAMPLES
96
+ $ me hello world
97
+ hello world! (./src/commands/hello/world.ts)
98
+ ```
99
+
100
+ _See code: [src/commands/hello/world.ts](https://github.com/meme2046/meocli/blob/v0.0.0/src/commands/hello/world.ts)_
101
+
102
+ ## `me help [COMMAND]`
103
+
104
+ Display help for me.
105
+
106
+ ```
107
+ USAGE
108
+ $ me help [COMMAND...] [-n]
109
+
110
+ ARGUMENTS
111
+ [COMMAND...] Command to show help for.
112
+
113
+ FLAGS
114
+ -n, --nested-commands Include all nested commands in the output.
115
+
116
+ DESCRIPTION
117
+ Display help for me.
118
+ ```
119
+
120
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
121
+
122
+ ## `me plugins`
123
+
124
+ List installed plugins.
125
+
126
+ ```
127
+ USAGE
128
+ $ me plugins [--json] [--core]
129
+
130
+ FLAGS
131
+ --core Show core plugins.
132
+
133
+ GLOBAL FLAGS
134
+ --json Format output as json.
135
+
136
+ DESCRIPTION
137
+ List installed plugins.
138
+
139
+ EXAMPLES
140
+ $ me plugins
141
+ ```
142
+
143
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
144
+
145
+ ## `me plugins add PLUGIN`
146
+
147
+ Installs a plugin into me.
148
+
149
+ ```
150
+ USAGE
151
+ $ me plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
152
+
153
+ ARGUMENTS
154
+ PLUGIN... Plugin to install.
155
+
156
+ FLAGS
157
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
158
+ -h, --help Show CLI help.
159
+ -s, --silent Silences npm output.
160
+ -v, --verbose Show verbose npm output.
161
+
162
+ GLOBAL FLAGS
163
+ --json Format output as json.
164
+
165
+ DESCRIPTION
166
+ Installs a plugin into me.
167
+
168
+ Uses npm to install plugins.
169
+
170
+ Installation of a user-installed plugin will override a core plugin.
171
+
172
+ Use the ME_NPM_LOG_LEVEL environment variable to set the npm loglevel.
173
+ Use the ME_NPM_REGISTRY environment variable to set the npm registry.
174
+
175
+ ALIASES
176
+ $ me plugins add
177
+
178
+ EXAMPLES
179
+ Install a plugin from npm registry.
180
+
181
+ $ me plugins add myplugin
182
+
183
+ Install a plugin from a github url.
184
+
185
+ $ me plugins add https://github.com/someuser/someplugin
186
+
187
+ Install a plugin from a github slug.
188
+
189
+ $ me plugins add someuser/someplugin
190
+ ```
191
+
192
+ ## `me plugins:inspect PLUGIN...`
193
+
194
+ Displays installation properties of a plugin.
195
+
196
+ ```
197
+ USAGE
198
+ $ me plugins inspect PLUGIN...
199
+
200
+ ARGUMENTS
201
+ PLUGIN... [default: .] Plugin to inspect.
202
+
203
+ FLAGS
204
+ -h, --help Show CLI help.
205
+ -v, --verbose
206
+
207
+ GLOBAL FLAGS
208
+ --json Format output as json.
209
+
210
+ DESCRIPTION
211
+ Displays installation properties of a plugin.
212
+
213
+ EXAMPLES
214
+ $ me plugins inspect myplugin
215
+ ```
216
+
217
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
218
+
219
+ ## `me plugins install PLUGIN`
220
+
221
+ Installs a plugin into me.
222
+
223
+ ```
224
+ USAGE
225
+ $ me plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
226
+
227
+ ARGUMENTS
228
+ PLUGIN... Plugin to install.
229
+
230
+ FLAGS
231
+ -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
232
+ -h, --help Show CLI help.
233
+ -s, --silent Silences npm output.
234
+ -v, --verbose Show verbose npm output.
235
+
236
+ GLOBAL FLAGS
237
+ --json Format output as json.
238
+
239
+ DESCRIPTION
240
+ Installs a plugin into me.
241
+
242
+ Uses npm to install plugins.
243
+
244
+ Installation of a user-installed plugin will override a core plugin.
245
+
246
+ Use the ME_NPM_LOG_LEVEL environment variable to set the npm loglevel.
247
+ Use the ME_NPM_REGISTRY environment variable to set the npm registry.
248
+
249
+ ALIASES
250
+ $ me plugins add
251
+
252
+ EXAMPLES
253
+ Install a plugin from npm registry.
254
+
255
+ $ me plugins install myplugin
256
+
257
+ Install a plugin from a github url.
258
+
259
+ $ me plugins install https://github.com/someuser/someplugin
260
+
261
+ Install a plugin from a github slug.
262
+
263
+ $ me plugins install someuser/someplugin
264
+ ```
265
+
266
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
267
+
268
+ ## `me plugins link PATH`
269
+
270
+ Links a plugin into the CLI for development.
271
+
272
+ ```
273
+ USAGE
274
+ $ me plugins link PATH [-h] [--install] [-v]
275
+
276
+ ARGUMENTS
277
+ PATH [default: .] path to plugin
278
+
279
+ FLAGS
280
+ -h, --help Show CLI help.
281
+ -v, --verbose
282
+ --[no-]install Install dependencies after linking the plugin.
283
+
284
+ DESCRIPTION
285
+ Links a plugin into the CLI for development.
286
+
287
+ Installation of a linked plugin will override a user-installed or core plugin.
288
+
289
+ e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
290
+ command will override the user-installed or core plugin implementation. This is useful for development work.
291
+
292
+
293
+ EXAMPLES
294
+ $ me plugins link myplugin
295
+ ```
296
+
297
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
298
+
299
+ ## `me plugins remove [PLUGIN]`
300
+
301
+ Removes a plugin from the CLI.
302
+
303
+ ```
304
+ USAGE
305
+ $ me plugins remove [PLUGIN...] [-h] [-v]
306
+
307
+ ARGUMENTS
308
+ [PLUGIN...] plugin to uninstall
309
+
310
+ FLAGS
311
+ -h, --help Show CLI help.
312
+ -v, --verbose
313
+
314
+ DESCRIPTION
315
+ Removes a plugin from the CLI.
316
+
317
+ ALIASES
318
+ $ me plugins unlink
319
+ $ me plugins remove
320
+
321
+ EXAMPLES
322
+ $ me plugins remove myplugin
323
+ ```
324
+
325
+ ## `me plugins reset`
326
+
327
+ Remove all user-installed and linked plugins.
328
+
329
+ ```
330
+ USAGE
331
+ $ me plugins reset [--hard] [--reinstall]
332
+
333
+ FLAGS
334
+ --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
335
+ --reinstall Reinstall all plugins after uninstalling.
336
+ ```
337
+
338
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
339
+
340
+ ## `me plugins uninstall [PLUGIN]`
341
+
342
+ Removes a plugin from the CLI.
343
+
344
+ ```
345
+ USAGE
346
+ $ me plugins uninstall [PLUGIN...] [-h] [-v]
347
+
348
+ ARGUMENTS
349
+ [PLUGIN...] plugin to uninstall
350
+
351
+ FLAGS
352
+ -h, --help Show CLI help.
353
+ -v, --verbose
354
+
355
+ DESCRIPTION
356
+ Removes a plugin from the CLI.
357
+
358
+ ALIASES
359
+ $ me plugins unlink
360
+ $ me plugins remove
361
+
362
+ EXAMPLES
363
+ $ me plugins uninstall myplugin
364
+ ```
365
+
366
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
367
+
368
+ ## `me plugins unlink [PLUGIN]`
369
+
370
+ Removes a plugin from the CLI.
371
+
372
+ ```
373
+ USAGE
374
+ $ me plugins unlink [PLUGIN...] [-h] [-v]
375
+
376
+ ARGUMENTS
377
+ [PLUGIN...] plugin to uninstall
378
+
379
+ FLAGS
380
+ -h, --help Show CLI help.
381
+ -v, --verbose
382
+
383
+ DESCRIPTION
384
+ Removes a plugin from the CLI.
385
+
386
+ ALIASES
387
+ $ me plugins unlink
388
+ $ me plugins remove
389
+
390
+ EXAMPLES
391
+ $ me plugins unlink myplugin
392
+ ```
393
+
394
+ ## `me plugins update`
395
+
396
+ Update installed plugins.
397
+
398
+ ```
399
+ USAGE
400
+ $ me plugins update [-h] [-v]
401
+
402
+ FLAGS
403
+ -h, --help Show CLI help.
404
+ -v, --verbose
405
+
406
+ DESCRIPTION
407
+ Update installed plugins.
408
+ ```
409
+
410
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
411
+ <!-- commandsstop -->
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
package/bin/dev.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
2
+
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({development: true, dir: import.meta.url})
package/bin/run.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\run" %*
package/bin/run.js ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ import {execute} from '@oclif/core'
4
+
5
+ await execute({dir: import.meta.url})
@@ -0,0 +1,12 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Hello extends Command {
3
+ static args: {
4
+ person: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ };
6
+ static description: string;
7
+ static examples: string[];
8
+ static flags: {
9
+ from: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
@@ -0,0 +1,19 @@
1
+ import { Args, Command, Flags } from '@oclif/core';
2
+ export default class Hello extends Command {
3
+ static args = {
4
+ person: Args.string({ description: 'Person to say hello to', required: true }),
5
+ };
6
+ static description = 'Say hello';
7
+ static examples = [
8
+ `<%= config.bin %> <%= command.id %> friend --from oclif
9
+ hello friend from oclif! (./src/commands/hello/index.ts)
10
+ `,
11
+ ];
12
+ static flags = {
13
+ from: Flags.string({ char: 'f', description: 'Who is saying hello', required: true }),
14
+ };
15
+ async run() {
16
+ const { args, flags } = await this.parse(Hello);
17
+ this.log(`hello ${args.person} from ${flags.from}! (./src/commands/hello/index.ts)`);
18
+ }
19
+ }
@@ -0,0 +1,8 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class World extends Command {
3
+ static args: {};
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {};
7
+ run(): Promise<void>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class World extends Command {
3
+ static args = {};
4
+ static description = 'Say hello world';
5
+ static examples = [
6
+ `<%= config.bin %> <%= command.id %>
7
+ hello world! (./src/commands/hello/world.ts)
8
+ `,
9
+ ];
10
+ static flags = {};
11
+ async run() {
12
+ await this.parse(World);
13
+ this.log('hello world! (./src/commands/hello/world.ts)');
14
+ }
15
+ }
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
@@ -0,0 +1,69 @@
1
+ {
2
+ "commands": {
3
+ "hello": {
4
+ "aliases": [],
5
+ "args": {
6
+ "person": {
7
+ "description": "Person to say hello to",
8
+ "name": "person",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Say hello",
13
+ "examples": [
14
+ "<%= config.bin %> <%= command.id %> friend --from oclif\nhello friend from oclif! (./src/commands/hello/index.ts)\n"
15
+ ],
16
+ "flags": {
17
+ "from": {
18
+ "char": "f",
19
+ "description": "Who is saying hello",
20
+ "name": "from",
21
+ "required": true,
22
+ "hasDynamicHelp": false,
23
+ "multiple": false,
24
+ "type": "option"
25
+ }
26
+ },
27
+ "hasDynamicHelp": false,
28
+ "hiddenAliases": [],
29
+ "id": "hello",
30
+ "pluginAlias": "meocli",
31
+ "pluginName": "meocli",
32
+ "pluginType": "core",
33
+ "strict": true,
34
+ "enableJsonFlag": false,
35
+ "isESM": true,
36
+ "relativePath": [
37
+ "dist",
38
+ "commands",
39
+ "hello",
40
+ "index.js"
41
+ ]
42
+ },
43
+ "hello:world": {
44
+ "aliases": [],
45
+ "args": {},
46
+ "description": "Say hello world",
47
+ "examples": [
48
+ "<%= config.bin %> <%= command.id %>\nhello world! (./src/commands/hello/world.ts)\n"
49
+ ],
50
+ "flags": {},
51
+ "hasDynamicHelp": false,
52
+ "hiddenAliases": [],
53
+ "id": "hello:world",
54
+ "pluginAlias": "meocli",
55
+ "pluginName": "meocli",
56
+ "pluginType": "core",
57
+ "strict": true,
58
+ "enableJsonFlag": false,
59
+ "isESM": true,
60
+ "relativePath": [
61
+ "dist",
62
+ "commands",
63
+ "hello",
64
+ "world.js"
65
+ ]
66
+ }
67
+ },
68
+ "version": "0.0.0"
69
+ }
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "meocli",
3
+ "description": "A new CLI generated with oclif",
4
+ "version": "0.0.0",
5
+ "author": "meme2046",
6
+ "bin": {
7
+ "me": "./bin/run.js"
8
+ },
9
+ "bugs": "https://github.com/meme2046/meocli/issues",
10
+ "dependencies": {
11
+ "@oclif/core": "^4",
12
+ "@oclif/plugin-help": "^6",
13
+ "@oclif/plugin-plugins": "^5"
14
+ },
15
+ "devDependencies": {
16
+ "@eslint/compat": "^1",
17
+ "@oclif/prettier-config": "^0.2.1",
18
+ "@oclif/test": "^4",
19
+ "@types/chai": "^4",
20
+ "@types/mocha": "^10",
21
+ "@types/node": "^18",
22
+ "chai": "^4",
23
+ "eslint": "^9",
24
+ "eslint-config-oclif": "^6",
25
+ "eslint-config-prettier": "^10",
26
+ "mocha": "^10",
27
+ "oclif": "^4",
28
+ "shx": "^0.3.3",
29
+ "ts-node": "^10",
30
+ "typescript": "^5"
31
+ },
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ },
35
+ "files": [
36
+ "./bin",
37
+ "./dist",
38
+ "./oclif.manifest.json"
39
+ ],
40
+ "homepage": "https://github.com/meme2046/meocli",
41
+ "keywords": [
42
+ "oclif"
43
+ ],
44
+ "license": "MIT",
45
+ "main": "dist/index.js",
46
+ "type": "module",
47
+ "oclif": {
48
+ "bin": "me",
49
+ "dirname": "me",
50
+ "commands": "./dist/commands",
51
+ "plugins": [
52
+ "@oclif/plugin-help",
53
+ "@oclif/plugin-plugins"
54
+ ],
55
+ "topicSeparator": " ",
56
+ "topics": {
57
+ "hello": {
58
+ "description": "Say hello to the world and others"
59
+ }
60
+ }
61
+ },
62
+ "repository": "meme2046/meocli",
63
+ "types": "dist/index.d.ts",
64
+ "scripts": {
65
+ "dev": "node bin/dev.js",
66
+ "prod": "node bin/run.js",
67
+ "build": "shx rm -rf dist && tsc -b",
68
+ "lint": "eslint",
69
+ "posttest": "pnpm run lint",
70
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
71
+ "version": "oclif readme && git add README.md"
72
+ }
73
+ }