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

Commit 167e92d

Browse files
committed
use common npm abbreviations, fixes #435
1 parent 5cf83aa commit 167e92d

8 files changed

+10
-7
lines changed

spec/install-spec.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,6 @@ describe 'apm install', ->
498498

499499
makefileContent = fs.readFileSync(path.join(testModuleDirectory, 'build', 'Makefile'), {encoding: 'utf-8'})
500500
expect(makefileContent).toMatch('node_modules/with\\ a\\ space/addon.gypi')
501+
502+
describe 'aliases for install', ->
503+
runs ->

src/config.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Command = require './command'
66

77
module.exports =
88
class Config extends Command
9-
@commandNames: ['config']
9+
@commandNames: ['config', 'c']
1010

1111
constructor: ->
1212
atomDirectory = apm.getAtomDirectory()

src/rebuild.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Install = require './install'
99

1010
module.exports =
1111
class Rebuild extends Command
12-
@commandNames: ['rebuild']
12+
@commandNames: ['rebuild', 'rb']
1313

1414
constructor: ->
1515
@atomNodeDirectory = path.join(config.getAtomDirectory(), '.node-gyp')

src/search.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tree = require './tree'
99

1010
module.exports =
1111
class Search extends Command
12-
@commandNames: ['search']
12+
@commandNames: ['search', 's', 'se']
1313

1414
parseOptions: (argv) ->
1515
options = yargs(argv).wrap(100)

src/test.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fs = require './fs'
88

99
module.exports =
1010
class Test extends Command
11-
@commandNames: ['test']
11+
@commandNames: ['test', 't', 'tst']
1212

1313
parseOptions: (argv) ->
1414
options = yargs(argv).wrap(100)

src/uninstall.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ request = require './request'
1212

1313
module.exports =
1414
class Uninstall extends Command
15-
@commandNames: ['deinstall', 'delete', 'erase', 'remove', 'rm', 'uninstall']
15+
@commandNames: ['deinstall', 'delete', 'erase', 'r', 'remove', 'rm', 'uninstall', 'un']
1616

1717
parseOptions: (argv) ->
1818
options = yargs(argv).wrap(100)

src/upgrade.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ git = require './git'
1818

1919
module.exports =
2020
class Upgrade extends Command
21-
@commandNames: ['upgrade', 'outdated', 'update']
21+
@commandNames: ['upgrade', 'outdated', 'update', 'up']
2222

2323
constructor: ->
2424
@atomDirectory = config.getAtomDirectory()

src/view.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tree = require './tree'
99

1010
module.exports =
1111
class View extends Command
12-
@commandNames: ['view', 'show']
12+
@commandNames: ['view', 'show', 'v']
1313

1414
parseOptions: (argv) ->
1515
options = yargs(argv).wrap(100)

0 commit comments

Comments
 (0)