Skip to content

chore(completion) - generate shell script in a much more automated way #3981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
99b5636
Completion.sh is generated in a much more automated way. It requires…
catull Jan 13, 2017
746e964
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 13, 2017
f9800b7
Merge from master
catull Jan 15, 2017
8045f0e
Now the completion shell script is generated out of TypeScript code e…
catull Jan 15, 2017
cab0460
Work around 100-character line length limit.
catull Jan 18, 2017
e397ff8
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 18, 2017
293e97b
Solution for the redirection. Actually, with the new solution, there…
catull Jan 18, 2017
a459242
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 18, 2017
a4c299c
merge from master
catull Jan 21, 2017
b249f5a
Replace console.log() with this.ui.writeLine().
catull Jan 21, 2017
0f3c82e
Rewrote comkpletion.ts, deeply inspired by help.ts.
catull Jan 22, 2017
3de15a5
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 22, 2017
a56a1ea
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 22, 2017
5c999a2
rawArgs are not used. this.ui.writeLine always prepends ANSI codes i…
catull Jan 22, 2017
4e10a23
Do not consider easter-egg, destroy or github-pages-deploy.
catull Jan 22, 2017
c390dab
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 22, 2017
69d1b55
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 22, 2017
6a840d6
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 23, 2017
443fbed
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 24, 2017
9f7335b
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 27, 2017
da3d31a
Merge from master to test new options of
catull Jan 28, 2017
1739176
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 31, 2017
ed1e303
Resolving review findings.
catull Jan 31, 2017
58a5646
Merge branch 'master' into enhancement-automation-of-completion-script
catull Jan 31, 2017
e322284
Merge branch 'master' into enhancement-automation-of-completion-script
catull Feb 1, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Work around 100-character line length limit.
  • Loading branch information
catull committed Jan 18, 2017
commit cab0460e2d9f553d320aef60219cb3c3602a87cc
4 changes: 3 additions & 1 deletion packages/angular-cli/commands/completion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as path from 'path';
import * as fs from 'fs';
import { oneLine } from 'common-tags';

import BuildCommand from './build';
import DestroyCommand from './destroy';
Expand Down Expand Up @@ -73,7 +74,8 @@ const optsHelp = optsNg.sort().join(' ');

let optsBuild = generateOptionVar(BuildCommand.prototype.availableOptions);
// let optsGenerate = generateMapVar (GenerateCommand.prototype.aliasMap);
let optsGenerate = "cl class c component d directive e enum i interface m module p pipe r route s service";
let optsGenerate = oneLine`
cl class c component d directive e enum i interface m module p pipe r route s service`;
let optsGhPagesDeploy = generateOptionVar(githubPagesDeployCommand.prototype.availableOptions);
let optsInit = generateOptionVar(InitCommand.prototype.availableOptions);
let optsNew = generateOptionVar(NewCommand.prototype.availableOptions);
Expand Down