tiversion

0.1.3 • Public • Published

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:

screenshot

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)

screenshot

Public API

getCurrentVersion

getCurrentVersion(path, callback);

  • path to begin search for tiapp.xml
  • callback returns to arguments
    1. err - error message
    2. res - object with: current - current version used in the app path - path where tiapp.xml was found

list

list(path, callback);

  • path to begin search for tiapp.xml
  • callback returns to arguments
    1. err - error message
    2. res - object with: current - current version used in the app path - path where tiapp.xml was found versions - titanium sdk versions installed

Readme

Keywords

none

Package Sidebar

Install

npm i tiversion

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • dbankier