tiversion
Handy Titanium SDK version commands
Install
sudo npm install -g tiversion
CLI Commamnds
tiversion
Returns the ti sdk version of the current project.
Can be used, e.g. with zsh so the version is in the prompt.
For example:
To add to zsh, e.g. add the following to your PROMPT:
$fg[cyan] $(echo `tiversion`)
(See my dotfiles repo if you want my full zsh theme.)
tiversion set
Can be used to set the sdk version of the current app.
NOTE requires the titnanium cli to be installed (sudo npm install -g titanium
)
Public API
getCurrentVersion
getCurrentVersion(path, callback);
-
path
to begin search for tiapp.xml -
callback
returns to arguments-
err
- error message -
res
- object with:current
- current version used in the apppath
- path wheretiapp.xml
was found
-
list
list(path, callback);
-
path
to begin search for tiapp.xml -
callback
returns to arguments-
err
- error message -
res
- object with:current
- current version used in the apppath
- path wheretiapp.xml
was foundversions
- titanium sdk versions installed
-