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

Commit 86c7571

Browse files
committed
use common npm abbreviations, fixes #435
1 parent d5363f8 commit 86c7571

14 files changed

+14
-14
lines changed

spec/config-spec.coffee

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe 'apm install', ->
8888
expect(fs.existsSync(existingTestModuleFile)).toBeTruthy()
8989

9090
callback = jasmine.createSpy('callback')
91-
apm.run(['install', "test-module"], callback)
91+
apm.run(['i', "test-module"], callback)
9292

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

spec/link-spec.coffee

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe "apm test", ->
5151
stderr:
5252
on: ->
5353
on: atomReturnFn
54-
apm.run(['test'], callback)
54+
apm.run(['t'], callback)
5555

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

spec/view-spec.coffee

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/install.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ request = require './request'
1616

1717
module.exports =
1818
class Install extends Command
19-
@commandNames: ['install']
19+
@commandNames: ['install', 'i']
2020

2121
constructor: ->
2222
@atomDirectory = config.getAtomDirectory()

src/rebuild.coffee

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

0 commit comments

Comments
 (0)