[TIMOB-15735] CLI: New 'cli:go' hook to manipulate incoming arguments
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-01-17T01:42:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.1, Release 3.3.0 |
| Components | Tooling |
| Labels | CLI, qe-testadded |
| Reporter | Fokke Zandbergen |
| Assignee | Chris Barber |
| Created | 2013-11-16T12:47:32.000+0000 |
| Updated | 2014-09-15T14:55:32.000+0000 |
Description
Following our discussion at https://github.com/appcelerator/titanium/issues/71 I'd like to suggest adding a new
cli:go (or whatever we name it) hook that executes before the process arguments are parsed. This will enable hooks to simplify the CLI commands, options and flags like [TiNy](http://github.com/fokkezb/tn) aims to do.
Titanium CLI master pull request: https://github.com/appcelerator/titanium/pull/94 Titanium CLI 3.2.x pull request: https://github.com/appcelerator/titanium/pull/95 NOTE: this ticket originally requested a "cli:pre-argv" event, but is actually named "cli:go".
Tested with [~cbarber] and verified the fix with Appcelerator Studio, build: 3.2.1.201401201818 Titanium SDK, build:3.2.1.v20140121105646 ├── acs@1.0.11 ├── alloy@1.3.1-beta3 ├── npm@1.3.2 ├── titanium@3.2.1 └── titanium-code-processor@1.1.0 npm -g ls titanium: /usr/local/lib └── titanium@3.2.1 (git://github.com/appcelerator/titanium.git#93286e7b263a968cb362cf4e2a367a9b31f4ccb3)
Actual result