Skip to content

Commit 3c5cf3c

Browse files
committed
feat(committer:get-all): Updated command output and feature functionality
feat(auto-update): Added programmatic auto-update to BaseCommand class feat(publishing): Added major, minor, patch, beta, and branch publishing
1 parent b145714 commit 3c5cf3c

24 files changed

Lines changed: 1027 additions & 6468 deletions

README.md

Lines changed: 14 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @herodevs/cli
1818
$ @herodevs/cli COMMAND
1919
running command...
2020
$ @herodevs/cli (--version)
21-
@herodevs/cli/0.0.1 linux-x64 node-v18.14.0
21+
@herodevs/cli/0.1.16 darwin-arm64 node-v18.17.1
2222
$ @herodevs/cli --help [COMMAND]
2323
USAGE
2424
$ @herodevs/cli COMMAND
@@ -29,10 +29,8 @@ USAGE
2929
# Commands
3030

3131
<!-- commands -->
32-
* [`@herodevs/cli committer`](#herodevscli-committer)
32+
* [`@herodevs/cli committer [GET-ALL]`](#herodevscli-committer-get-all)
3333
* [`@herodevs/cli committer:get-all [flags [-s][-e][-x]]`](#herodevscli-committerget-all-flags--s-e-x)
34-
* [`@herodevs/cli hello PERSON`](#herodevscli-hello-person)
35-
* [`@herodevs/cli hello world`](#herodevscli-hello-world)
3634
* [`@herodevs/cli help [COMMANDS]`](#herodevscli-help-commands)
3735
* [`@herodevs/cli plugins`](#herodevscli-plugins)
3836
* [`@herodevs/cli plugins:install PLUGIN...`](#herodevscli-pluginsinstall-plugin)
@@ -43,15 +41,19 @@ USAGE
4341
* [`@herodevs/cli plugins:uninstall PLUGIN...`](#herodevscli-pluginsuninstall-plugin-1)
4442
* [`@herodevs/cli plugins:uninstall PLUGIN...`](#herodevscli-pluginsuninstall-plugin-2)
4543
* [`@herodevs/cli plugins update`](#herodevscli-plugins-update)
46-
* [`@herodevs/cli update [CHANNEL]`](#herodevscli-update-channel)
4744

48-
## `@herodevs/cli committer`
45+
## `@herodevs/cli committer [GET-ALL]`
4946

5047
Gets committer info
5148

5249
```
5350
USAGE
54-
$ @herodevs/cli committer
51+
$ @herodevs/cli committer [GET-ALL] [--json] [--log-level debug|info|warn|error]
52+
53+
GLOBAL FLAGS
54+
--json Format output as json.
55+
--log-level=<option> Specify level for logging.
56+
<options: debug|info|warn|error>
5557
5658
DESCRIPTION
5759
Gets committer info
@@ -60,7 +62,7 @@ EXAMPLES
6062
$ @herodevs/cli committer
6163
```
6264

63-
_See code: [dist/commands/committer/index.ts](https://github.com/herodevs/cli/blob/v0.0.1/dist/commands/committer/index.ts)_
65+
_See code: [dist/commands/committer/index.ts](https://github.com/herodevs/cli/blob/v0.1.16/dist/commands/committer/index.ts)_
6466

6567
## `@herodevs/cli committer:get-all [flags [-s][-e][-x]]`
6668

@@ -71,9 +73,9 @@ USAGE
7173
$ @herodevs/cli committer get-all [flags [-s][-e][-x]]
7274
7375
FLAGS
74-
-e, --endDate=<value> [default: 2022-08-25] End Date (format: yyyy-MM-dd)
75-
-s, --startDate=<value> [default: 2023-08-25] Start Date (format: yyyy-MM-dd)
76-
-x, --exclude=<value>... [default: ''] Path Exclusions (eg -x="./src/bin" -x="./dist")
76+
-e, --endDate=<value> [default: 2022-09-01] End Date (format: yyyy-MM-dd)
77+
-s, --startDate=<value> [default: 2023-09-01] Start Date (format: yyyy-MM-dd)
78+
-x, --exclude=<value>... Path Exclusions (eg -x="./src/bin" -x="./dist")
7779
7880
GLOBAL FLAGS
7981
--json Format output as json.
@@ -84,49 +86,7 @@ EXAMPLES
8486
$ @herodevs/cli committer get-all
8587
```
8688

87-
_See code: [dist/commands/committer/get-all.ts](https://github.com/herodevs/cli/blob/v0.0.1/dist/commands/committer/get-all.ts)_
88-
89-
## `@herodevs/cli hello PERSON`
90-
91-
Say hello
92-
93-
```
94-
USAGE
95-
$ @herodevs/cli hello PERSON -f <value>
96-
97-
ARGUMENTS
98-
PERSON Person to say hello to
99-
100-
FLAGS
101-
-f, --from=<value> (required) Who is saying hello
102-
103-
DESCRIPTION
104-
Say hello
105-
106-
EXAMPLES
107-
$ oex hello friend --from oclif
108-
hello friend from oclif! (./src/commands/hello/index.ts)
109-
```
110-
111-
_See code: [dist/commands/hello/index.ts](https://github.com/herodevs/cli/blob/v0.0.1/dist/commands/hello/index.ts)_
112-
113-
## `@herodevs/cli hello world`
114-
115-
Say hello world
116-
117-
```
118-
USAGE
119-
$ @herodevs/cli hello world
120-
121-
DESCRIPTION
122-
Say hello world
123-
124-
EXAMPLES
125-
$ @herodevs/cli hello world
126-
hello world! (./src/commands/hello/world.ts)
127-
```
128-
129-
_See code: [dist/commands/hello/world.ts](https://github.com/herodevs/cli/blob/v0.0.1/dist/commands/hello/world.ts)_
89+
_See code: [dist/commands/committer/get-all.ts](https://github.com/herodevs/cli/blob/v0.1.16/dist/commands/committer/get-all.ts)_
13090

13191
## `@herodevs/cli help [COMMANDS]`
13292

@@ -393,41 +353,4 @@ DESCRIPTION
393353
```
394354

395355
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.5/src/commands/plugins/update.ts)_
396-
397-
## `@herodevs/cli update [CHANNEL]`
398-
399-
update the @herodevs/cli CLI
400-
401-
```
402-
USAGE
403-
$ @herodevs/cli update [CHANNEL] [-a] [-v <value> | -i] [--force]
404-
405-
FLAGS
406-
-a, --available Install a specific version.
407-
-i, --interactive Interactively select version to install. This is ignored if a channel is provided.
408-
-v, --version=<value> Install a specific version.
409-
--force Force a re-download of the requested version.
410-
411-
DESCRIPTION
412-
update the @herodevs/cli CLI
413-
414-
EXAMPLES
415-
Update to the stable channel:
416-
417-
$ @herodevs/cli update stable
418-
419-
Update to a specific version:
420-
421-
$ @herodevs/cli update --version 1.0.0
422-
423-
Interactively select version:
424-
425-
$ @herodevs/cli update --interactive
426-
427-
See available versions:
428-
429-
$ @herodevs/cli update --available
430-
```
431-
432-
_See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.1.32/src/commands/update.ts)_
433356
<!-- commandsstop -->

bin/dev

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/usr/bin/env node
2+
require('module-alias/register');
3+
const oclif = require('@oclif/core');
24

3-
const oclif = require('@oclif/core')
4-
5-
const path = require('path')
6-
const project = path.join(__dirname, '..', 'tsconfig.json')
5+
const path = require('path');
6+
const project = path.join(__dirname, '..', 'tsconfig.json');
77

88
// In dev mode -> use ts-node and dev plugins
9-
process.env.NODE_ENV = 'development'
9+
process.env.NODE_ENV = 'development';
1010

11-
require('ts-node').register({project})
11+
require('ts-node').register({project});
1212

1313
// In dev mode, always show stack traces
1414
oclif.settings.debug = true;
1515

1616
// Start the CLI
17-
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
17+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);

bin/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2+
require('module-alias/register');
3+
const oclif = require('@oclif/core');
24

3-
const oclif = require('@oclif/core')
4-
5-
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'))
5+
oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));

0 commit comments

Comments
 (0)