Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15735] CLI: New 'cli:go' hook to manipulate incoming arguments

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-01-17T01:42:54.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.1, Release 3.3.0
ComponentsTooling
LabelsCLI, qe-testadded
ReporterFokke Zandbergen
AssigneeChris Barber
Created2013-11-16T12:47:32.000+0000
Updated2014-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.

Comments

  1. Chris Barber 2014-01-17

    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".
  2. Olga Romero 2014-01-21

    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

       [EVENT-HOOK] cli:go
       

JSON Source