mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-30 16:13:59 +00:00
Merge pull request #2052 from balena-io/rename-actions
Rename actions-oclif/ to commands/
This commit is contained in:
commit
75687f51ac
@ -29,7 +29,7 @@ When using `./bin/balena-dev`, it is currently necessary to manually edit the `o
|
|||||||
Change from:
|
Change from:
|
||||||
```
|
```
|
||||||
"oclif": {
|
"oclif": {
|
||||||
"commands": "./build/actions-oclif",
|
"commands": "./build/commands",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prerun": "./build/hooks/prerun/track"
|
"prerun": "./build/hooks/prerun/track"
|
||||||
```
|
```
|
||||||
@ -37,7 +37,7 @@ Change from:
|
|||||||
To:
|
To:
|
||||||
```
|
```
|
||||||
"oclif": {
|
"oclif": {
|
||||||
"commands": "./lib/actions-oclif",
|
"commands": "./lib/commands",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prerun": "./lib/hooks/prerun/track"
|
"prerun": "./lib/hooks/prerun/track"
|
||||||
```
|
```
|
||||||
@ -92,9 +92,9 @@ The content sources for the auto generation of `doc/cli.markdown` are:
|
|||||||
* [Selected
|
* [Selected
|
||||||
sections](https://github.com/balena-io/balena-cli/blob/v12.23.0/automation/capitanodoc/capitanodoc.ts#L199-L204)
|
sections](https://github.com/balena-io/balena-cli/blob/v12.23.0/automation/capitanodoc/capitanodoc.ts#L199-L204)
|
||||||
of the README file.
|
of the README file.
|
||||||
* The CLI's command documentation in source code (`/lib/actions-oclif/` folder), for example:
|
* The CLI's command documentation in source code (`lib/commands/` folder), for example:
|
||||||
* `lib/actions-oclif/push.ts`
|
* `lib/commands/push.ts`
|
||||||
* `lib/actions-oclif/env/add.ts`
|
* `lib/commands/env/add.ts`
|
||||||
|
|
||||||
The README file is manually edited, but subsections are automatically extracted for inclusion in
|
The README file is manually edited, but subsections are automatically extracted for inclusion in
|
||||||
`doc/cli.markdown` by the `getCapitanoDoc()` function in
|
`doc/cli.markdown` by the `getCapitanoDoc()` function in
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { JsonVersions } from '../lib/actions-oclif/version';
|
import type { JsonVersions } from '../lib/commands/version';
|
||||||
|
|
||||||
import { run as oclifRun } from '@oclif/dev-cli';
|
import { run as oclifRun } from '@oclif/dev-cli';
|
||||||
import * as archiver from 'archiver';
|
import * as archiver from 'archiver';
|
||||||
|
@ -31,146 +31,146 @@ const capitanoDoc = {
|
|||||||
categories: [
|
categories: [
|
||||||
{
|
{
|
||||||
title: 'API keys',
|
title: 'API keys',
|
||||||
files: ['build/actions-oclif/api-key/generate.js'],
|
files: ['build/commands/api-key/generate.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Application',
|
title: 'Application',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/apps.js',
|
'build/commands/apps.js',
|
||||||
'build/actions-oclif/app/index.js',
|
'build/commands/app/index.js',
|
||||||
'build/actions-oclif/app/create.js',
|
'build/commands/app/create.js',
|
||||||
'build/actions-oclif/app/rm.js',
|
'build/commands/app/rm.js',
|
||||||
'build/actions-oclif/app/rename.js',
|
'build/commands/app/rename.js',
|
||||||
'build/actions-oclif/app/restart.js',
|
'build/commands/app/restart.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Authentication',
|
title: 'Authentication',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/login.js',
|
'build/commands/login.js',
|
||||||
'build/actions-oclif/logout.js',
|
'build/commands/logout.js',
|
||||||
'build/actions-oclif/whoami.js',
|
'build/commands/whoami.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Device',
|
title: 'Device',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/device/identify.js',
|
'build/commands/device/identify.js',
|
||||||
'build/actions-oclif/device/init.js',
|
'build/commands/device/init.js',
|
||||||
'build/actions-oclif/device/index.js',
|
'build/commands/device/index.js',
|
||||||
'build/actions-oclif/device/move.js',
|
'build/commands/device/move.js',
|
||||||
'build/actions-oclif/device/reboot.js',
|
'build/commands/device/reboot.js',
|
||||||
'build/actions-oclif/device/register.js',
|
'build/commands/device/register.js',
|
||||||
'build/actions-oclif/device/rename.js',
|
'build/commands/device/rename.js',
|
||||||
'build/actions-oclif/device/rm.js',
|
'build/commands/device/rm.js',
|
||||||
'build/actions-oclif/device/restart.js',
|
'build/commands/device/restart.js',
|
||||||
'build/actions-oclif/device/shutdown.js',
|
'build/commands/device/shutdown.js',
|
||||||
'build/actions-oclif/devices/index.js',
|
'build/commands/devices/index.js',
|
||||||
'build/actions-oclif/devices/supported.js',
|
'build/commands/devices/supported.js',
|
||||||
'build/actions-oclif/device/os-update.js',
|
'build/commands/device/os-update.js',
|
||||||
'build/actions-oclif/device/public-url.js',
|
'build/commands/device/public-url.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Environment Variables',
|
title: 'Environment Variables',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/envs.js',
|
'build/commands/envs.js',
|
||||||
'build/actions-oclif/env/add.js',
|
'build/commands/env/add.js',
|
||||||
'build/actions-oclif/env/rename.js',
|
'build/commands/env/rename.js',
|
||||||
'build/actions-oclif/env/rm.js',
|
'build/commands/env/rm.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Tags',
|
title: 'Tags',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/tags.js',
|
'build/commands/tags.js',
|
||||||
'build/actions-oclif/tag/rm.js',
|
'build/commands/tag/rm.js',
|
||||||
'build/actions-oclif/tag/set.js',
|
'build/commands/tag/set.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Help and Version',
|
title: 'Help and Version',
|
||||||
files: ['help', 'build/actions-oclif/version.js'],
|
files: ['help', 'build/commands/version.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Keys',
|
title: 'Keys',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/keys.js',
|
'build/commands/keys.js',
|
||||||
'build/actions-oclif/key/index.js',
|
'build/commands/key/index.js',
|
||||||
'build/actions-oclif/key/add.js',
|
'build/commands/key/add.js',
|
||||||
'build/actions-oclif/key/rm.js',
|
'build/commands/key/rm.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Logs',
|
title: 'Logs',
|
||||||
files: ['build/actions-oclif/logs.js'],
|
files: ['build/commands/logs.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Network',
|
title: 'Network',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/scan.js',
|
'build/commands/scan.js',
|
||||||
'build/actions-oclif/ssh.js',
|
'build/commands/ssh.js',
|
||||||
'build/actions-oclif/tunnel.js',
|
'build/commands/tunnel.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Notes',
|
title: 'Notes',
|
||||||
files: ['build/actions-oclif/note.js'],
|
files: ['build/commands/note.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'OS',
|
title: 'OS',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/os/build-config.js',
|
'build/commands/os/build-config.js',
|
||||||
'build/actions-oclif/os/configure.js',
|
'build/commands/os/configure.js',
|
||||||
'build/actions-oclif/os/versions.js',
|
'build/commands/os/versions.js',
|
||||||
'build/actions-oclif/os/download.js',
|
'build/commands/os/download.js',
|
||||||
'build/actions-oclif/os/initialize.js',
|
'build/commands/os/initialize.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Config',
|
title: 'Config',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/config/generate.js',
|
'build/commands/config/generate.js',
|
||||||
'build/actions-oclif/config/inject.js',
|
'build/commands/config/inject.js',
|
||||||
'build/actions-oclif/config/read.js',
|
'build/commands/config/read.js',
|
||||||
'build/actions-oclif/config/reconfigure.js',
|
'build/commands/config/reconfigure.js',
|
||||||
'build/actions-oclif/config/write.js',
|
'build/commands/config/write.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Preload',
|
title: 'Preload',
|
||||||
files: ['build/actions-oclif/preload.js'],
|
files: ['build/commands/preload.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Push',
|
title: 'Push',
|
||||||
files: ['build/actions-oclif/push.js'],
|
files: ['build/commands/push.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Settings',
|
title: 'Settings',
|
||||||
files: ['build/actions-oclif/settings.js'],
|
files: ['build/commands/settings.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Local',
|
title: 'Local',
|
||||||
files: [
|
files: [
|
||||||
'build/actions-oclif/local/configure.js',
|
'build/commands/local/configure.js',
|
||||||
'build/actions-oclif/local/flash.js',
|
'build/commands/local/flash.js',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Deploy',
|
title: 'Deploy',
|
||||||
files: ['build/actions-oclif/build.js', 'build/actions-oclif/deploy.js'],
|
files: ['build/commands/build.js', 'build/commands/deploy.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Platform',
|
title: 'Platform',
|
||||||
files: ['build/actions-oclif/join.js', 'build/actions-oclif/leave.js'],
|
files: ['build/commands/join.js', 'build/commands/leave.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Utilities',
|
title: 'Utilities',
|
||||||
files: ['build/actions-oclif/util/available-drives.js'],
|
files: ['build/commands/util/available-drives.js'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Support',
|
title: 'Support',
|
||||||
files: ['build/actions-oclif/support.js'],
|
files: ['build/commands/support.js'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
},
|
},
|
||||||
"oclif": {
|
"oclif": {
|
||||||
"bin": "balena",
|
"bin": "balena",
|
||||||
"commands": "./build/actions-oclif",
|
"commands": "./build/commands",
|
||||||
"helpClass": "./build/help",
|
"helpClass": "./build/help",
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"prerun": "./build/hooks/prerun/track",
|
"prerun": "./build/hooks/prerun/track",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user