Skip to content

Commit

Permalink
use common npm abbreviations, fixes atom#435
Browse files Browse the repository at this point in the history
  • Loading branch information
bronson committed Sep 4, 2017
1 parent 5cf83aa commit 3f341a5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions spec/install-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,6 @@ describe 'apm install', ->

makefileContent = fs.readFileSync(path.join(testModuleDirectory, 'build', 'Makefile'), {encoding: 'utf-8'})
expect(makefileContent).toMatch('node_modules/with\\ a\\ space/addon.gypi')

describe 'aliases for install', ->
runs ->
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', 'show', 'v']

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

0 comments on commit 3f341a5

Please sign in to comment.