mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Remove instances of incorrect command completion
This commit is contained in:
parent
b4d19dcd1a
commit
72de3d21b6
@ -14,7 +14,11 @@ const tab = require('tabtab')({ name });
|
||||
|
||||
const getSugestions = (commands) => {
|
||||
tab.on(name, (data, done) => {
|
||||
done(null, Object.keys(commands));
|
||||
if (data.words === 1) {
|
||||
done(null, Object.keys(commands));
|
||||
} else {
|
||||
done(null, []);
|
||||
}
|
||||
});
|
||||
|
||||
Object.keys(commands).forEach(command => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user