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

Commit 03a588a

Browse files
committed
use common npm abbreviations, fixes #435
1 parent 7a917d2 commit 03a588a

13 files changed

+13
-13
lines changed

spec/config-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe "apm config", ->
3333
expect(fs.isFileSync(userConfigPath)).toBe false
3434

3535
callback = jasmine.createSpy('callback')
36-
apm.run(['config', 'set', 'foo', 'bar'], callback)
36+
apm.run(['c', 'set', 'foo', 'bar'], callback)
3737

3838
waitsFor 'waiting for config set to complete', 600000, ->
3939
callback.callCount is 1

spec/install-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe 'apm install', ->
9191
expect(fs.existsSync(existingTestModuleFile)).toBeTruthy()
9292

9393
callback = jasmine.createSpy('callback')
94-
apm.run(['install', "test-module"], callback)
94+
apm.run(['i', "test-module"], callback)
9595

9696
waitsFor 'waiting for install to complete', 600000, ->
9797
callback.callCount is 1

spec/link-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe 'apm link/unlink', ->
4444
callback = jasmine.createSpy('callback')
4545

4646
runs ->
47-
apm.run(['link', '--dev'], callback)
47+
apm.run(['ln', '--dev'], callback)
4848

4949
waitsFor 'waiting for link to complete', ->
5050
callback.callCount > 0

spec/search-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe 'apm search', ->
3737

3838
it "logs an error if the query is missing or empty", ->
3939
callback = jasmine.createSpy('callback')
40-
apm.run(['search'], callback)
40+
apm.run(['s'], callback)
4141

4242
waitsFor 'waiting for command to complete', ->
4343
callback.callCount > 0

spec/test-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe "apm test", ->
5252
on: ->
5353
on: atomReturnFn
5454
removeListener: -> # no op
55-
apm.run(['test'], callback)
55+
apm.run(['t'], callback)
5656

5757
describe 'successfully', ->
5858
beforeEach -> returnWithCode('close', 0)

spec/view-spec.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe 'apm view', ->
3737

3838
it "logs an error if the package name is missing or empty", ->
3939
callback = jasmine.createSpy('callback')
40-
apm.run(['view'], callback)
40+
apm.run(['v'], callback)
4141

4242
waitsFor 'waiting for view to complete', ->
4343
callback.callCount > 0

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', 'info', 'v']
1313

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

0 commit comments

Comments
 (0)