Skip to content

Commit

Permalink
feat(CLI): Remove "slss", "serverless" command alias (#8161)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
`slss` alias for `serverless` CLI ommand was removed. Rely on `sls` instead
  • Loading branch information
crash7 authored and medikoo committed Sep 10, 2020
1 parent 34b64e0 commit 33eef9f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 19 deletions.
12 changes: 0 additions & 12 deletions bin/slss.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/plugins/config/config.test.js
Expand Up @@ -49,7 +49,6 @@ describe('Config', () => {
),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/serverless.bash'), 'utf8'),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/sls.bash'), 'utf8'),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/slss.bash'), 'utf8'),
])
));

Expand All @@ -71,9 +70,6 @@ describe('Config', () => {
fs
.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/sls.bash'))
.then(unexpected, error => expect(error.code).to.equal('ENOENT')),
fs
.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/slss.bash'))
.then(unexpected, error => expect(error.code).to.equal('ENOENT')),
])
)
));
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/interactiveCli/tabCompletion.test.js
Expand Up @@ -92,7 +92,6 @@ describe('interactiveCli: tabCompletion', () => {
),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/serverless.bash'), 'utf8'),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/sls.bash'), 'utf8'),
fs.readFileAsync(path.resolve(os.homedir(), '.config/tabtab/slss.bash'), 'utf8'),
])
);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/tabCompletion/tabtabOptions.js
@@ -1,3 +1,3 @@
'use strict';

module.exports = ['serverless', 'sls', 'slss'].map(name => ({ name, completer: name }));
module.exports = ['serverless', 'sls'].map(name => ({ name, completer: name }));
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,6 @@
"main": "lib/Serverless.js",
"bin": {
"serverless": "./bin/serverless.js",
"slss": "./bin/slss.js",
"sls": "./bin/serverless.js"
},
"dependencies": {
Expand Down

1 comment on commit 33eef9f

@gasim75
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi my name is abuelgasim how as working

Please sign in to comment.