Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

use common npm abbreviations, fixes #435 #484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Command = require './command'

module.exports =
class Config extends Command
@commandNames: ['config']
@commandNames: ['config', 'c']

constructor: ->
atomDirectory = apm.getAtomDirectory()
Expand Down
2 changes: 1 addition & 1 deletion src/rebuild.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Install = require './install'

module.exports =
class Rebuild extends Command
@commandNames: ['rebuild']
@commandNames: ['rebuild', 'rb']

constructor: ->
@atomNodeDirectory = path.join(config.getAtomDirectory(), '.node-gyp')
Expand Down
2 changes: 1 addition & 1 deletion src/search.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tree = require './tree'

module.exports =
class Search extends Command
@commandNames: ['search']
@commandNames: ['search', 's', 'se']

parseOptions: (argv) ->
options = yargs(argv).wrap(100)
Expand Down
2 changes: 1 addition & 1 deletion src/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fs = require './fs'

module.exports =
class Test extends Command
@commandNames: ['test']
@commandNames: ['test', 't', 'tst']

parseOptions: (argv) ->
options = yargs(argv).wrap(100)
Expand Down
2 changes: 1 addition & 1 deletion src/uninstall.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ request = require './request'

module.exports =
class Uninstall extends Command
@commandNames: ['deinstall', 'delete', 'erase', 'remove', 'rm', 'uninstall']
@commandNames: ['deinstall', 'delete', 'erase', 'r', 'remove', 'rm', 'uninstall', 'un']

parseOptions: (argv) ->
options = yargs(argv).wrap(100)
Expand Down
2 changes: 1 addition & 1 deletion src/upgrade.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git = require './git'

module.exports =
class Upgrade extends Command
@commandNames: ['upgrade', 'outdated', 'update']
@commandNames: ['upgrade', 'outdated', 'update', 'up']

constructor: ->
@atomDirectory = config.getAtomDirectory()
Expand Down
2 changes: 1 addition & 1 deletion src/view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tree = require './tree'

module.exports =
class View extends Command
@commandNames: ['view', 'show']
@commandNames: ['view', 'info', 'show', 'v']

parseOptions: (argv) ->
options = yargs(argv).wrap(100)
Expand Down