This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
forked oclif plugin generator and modified it to create sfdx cli plugins
- Loading branch information
Alli
committed
Apr 4, 2018
1 parent
679b03b
commit ea6013a
Showing
24 changed files
with
592 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
/lib | ||
/node_modules | ||
/tmp | ||
.oclif.manifest.json | ||
yarn.lock |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
jobs: | ||
- name: publish | ||
skipTests: true | ||
- name: promote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import AppCommand from '../app_command' | ||
|
||
export default class extends AppCommand { | ||
static hidden = true | ||
static description = 'generate a new multi-command CLI' | ||
type = 'multi' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import AppCommand from '../app_command' | ||
|
||
export default class extends AppCommand { | ||
static hidden = true | ||
static description = 'create a new CLI plugin' | ||
type = 'plugin' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Base from '../../command_base' | ||
import {flags} from '@oclif/command' | ||
|
||
export default class Generate extends Base { | ||
static flags = { | ||
defaults: flags.boolean({description: 'use defaults for every setting'}), | ||
force: flags.boolean({description: 'overwrite existing files'}), | ||
} | ||
|
||
static args = [ | ||
{name: 'path', required: false} | ||
] | ||
|
||
static description = 'create a new sfdx-cli plugin' | ||
type = 'sfdx-plugin' | ||
|
||
async run() { | ||
const {flags, args} = this.parse(Generate) | ||
|
||
await super.generate('app', { | ||
type: this.type, | ||
path: args.path, | ||
defaults: flags.defaults, | ||
force: flags.force, | ||
options: [] | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import AppCommand from '../app_command' | ||
|
||
export default class extends AppCommand { | ||
static hidden = true | ||
static description = 'generate a new single-command CLI' | ||
type = 'single' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Remote", | ||
"address": "127.0.0.1", | ||
"port": 9229, | ||
"localRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"commandDescription": "Prints a greeting and your org id(s)!", | ||
"nameFlagDescription": "name to print" | ||
} |
Oops, something went wrong.