-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
216 additions
and
281 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
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,3 +1,3 @@ | ||
{ | ||
"extends": "anycli" | ||
"extends": "oclif" | ||
} |
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,31 +1,31 @@ | ||
anycli | ||
oclif | ||
====== | ||
|
||
anycli: create your own CLI | ||
oclif: create your own CLI | ||
|
||
[![Version](https://img.shields.io/npm/v/anycli.svg)](https://npmjs.org/package/anycli) | ||
[![CircleCI](https://circleci.com/gh/anycli/cli/tree/master.svg?style=svg)](https://circleci.com/gh/anycli/cli/tree/master) | ||
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/anycli/cli?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/anycli/branch/master) | ||
[![Codecov](https://codecov.io/gh/anycli/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/anycli/cli) | ||
[![Greenkeeper](https://badges.greenkeeper.io/anycli/cli.svg)](https://greenkeeper.io/) | ||
[![Known Vulnerabilities](https://snyk.io/test/npm/anycli/badge.svg)](https://snyk.io/test/npm/anycli) | ||
[![Downloads/week](https://img.shields.io/npm/dw/anycli.svg)](https://npmjs.org/package/anycli) | ||
[![License](https://img.shields.io/npm/l/anycli.svg)](https://github.com/anycli/cli/blob/master/package.json) | ||
[![Version](https://img.shields.io/npm/v/oclif.svg)](https://npmjs.org/package/oclif) | ||
[![CircleCI](https://circleci.com/gh/oclif/cli/tree/master.svg?style=svg)](https://circleci.com/gh/oclif/cli/tree/master) | ||
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/cli?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/oclif/branch/master) | ||
[![Codecov](https://codecov.io/gh/oclif/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/oclif/cli) | ||
[![Greenkeeper](https://badges.greenkeeper.io/oclif/cli.svg)](https://greenkeeper.io/) | ||
[![Known Vulnerabilities](https://snyk.io/test/npm/oclif/badge.svg)](https://snyk.io/test/npm/oclif) | ||
[![Downloads/week](https://img.shields.io/npm/dw/oclif.svg)](https://npmjs.org/package/oclif) | ||
[![License](https://img.shields.io/npm/l/oclif.svg)](https://github.com/oclif/cli/blob/master/package.json) | ||
|
||
Useful Repos | ||
------------ | ||
|
||
**Plugins** | ||
|
||
* [@anycli/version](https://github.com/anycli/version) - `mycli -v|--version|version`. Show the current version. | ||
* [@anycli/not-found](https://github.com/anycli/not-found) - Display a friendly "did you mean" message if a command is not found. | ||
* [@anycli/plugins](https://github.com/anycli/plugins) - Allow users to add plugins to extend your CLI. | ||
* [@anycli/autoupdate](https://github.com/anycli/autoupdate) - Add autoupdate support to the CLI. | ||
* [@anycli/autocomplete](https://github.com/anycli/autocomplete) - Add bash/zsh autocomplete. | ||
* [@oclif/version](https://github.com/oclif/version) - `mycli -v|--version|version`. Show the current version. | ||
* [@oclif/not-found](https://github.com/oclif/not-found) - Display a friendly "did you mean" message if a command is not found. | ||
* [@oclif/plugins](https://github.com/oclif/plugins) - Allow users to add plugins to extend your CLI. | ||
* [@oclif/autoupdate](https://github.com/oclif/autoupdate) - Add autoupdate support to the CLI. | ||
* [@oclif/autocomplete](https://github.com/oclif/autocomplete) - Add bash/zsh autocomplete. | ||
|
||
Building your own plugin | ||
------------------------ | ||
|
||
Writing code for plugins is essentially the same as writing within a CLI. They can export 3 different types: commands, hooks, and other plugins. | ||
|
||
Run `yarn create anycli plugin mynewplugin` to create a plugin a new directory. This will come with a sample command and hook | ||
Run `yarn create oclif plugin mynewplugin` to create a plugin a new directory. This will come with a sample command and hook |
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,4 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
require('..').run() | ||
.catch(require('@anycli/errors/handle')) | ||
.catch(require('@oclif/errors/handle')) |
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,4 +1,4 @@ | ||
import {flags} from '@anycli/command' | ||
import {flags} from '@oclif/command' | ||
|
||
import Base from './command_base' | ||
|
||
|
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,4 +1,4 @@ | ||
import {flags} from '@anycli/command' | ||
import {flags} from '@oclif/command' | ||
|
||
import Base from '../command_base' | ||
|
||
|
Oops, something went wrong.