Skip to content

Commit 779c4d6

Browse files
authored
chore: drop completion support (#915)
1 parent 38202c7 commit 779c4d6

File tree

8 files changed

+6
-846
lines changed

8 files changed

+6
-846
lines changed

lib/cli.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import rootCheck from 'root-check';
1212
import meow from 'meow';
1313
import list from 'cli-list';
1414
import {bootstrap} from 'global-agent';
15-
import Tabtab from './completion/tabtab.cjs';
1615
import pkg from './utils/project-package.js';
1716
import Router from './router.js';
1817
import * as routes from './routes/index.js';
@@ -71,14 +70,7 @@ async function pre() {
7170
}
7271

7372
if (cmd === 'completion') {
74-
// eslint-disable-next-line new-cap
75-
const tabtab = new Tabtab.Commands.default({
76-
name: 'yo',
77-
completer: 'yo-complete',
78-
cache: false,
79-
});
80-
81-
return tabtab.install();
73+
throw new Error('Tabtab completion is no longer supported. See https://github.com/yeoman/yo/issues/886');
8274
}
8375

8476
// Easteregg

lib/completion/completer.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

lib/completion/index.cjs

Lines changed: 0 additions & 22 deletions
This file was deleted.

lib/completion/tabtab.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/usage.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ Run local generators:
2121

2222
$ yo ./path/to/some/generator
2323

24-
Completion:
25-
26-
To enable shell completion for the yo command, try running
27-
28-
$ yo completion
29-
3024
Troubleshooting:
3125

3226
For any issues, try running

0 commit comments

Comments
 (0)