Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbankier/timodules
module commands for a titanium project
https://github.com/dbankier/timodules
Last synced: about 2 months ago
JSON representation
module commands for a titanium project
- Host: GitHub
- URL: https://github.com/dbankier/timodules
- Owner: dbankier
- Created: 2013-09-16T00:56:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-06T00:51:18.000Z (about 9 years ago)
- Last Synced: 2024-09-19T10:48:25.061Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
timodules
=========Handy Titanium SDK module commands
Install
-------```
sudo npm install -g timodules
```CLI Commamnds
-------------### timodules
Returns the current modules in JSON format:
```
$ timodules
[{"name":"yy.androidalaw","platform":"android","version":"0.1"}]
```### timodules set
Can be used to set the modules used in the application:
* space to select/deselect
* return to commit changes
* ctrl-c to exit/abort**NOTE** requires the titnanium cli to be installed (`sudo npm install -g titanium`)
![screenshot](http://github.com/dbankier/timodules/raw/master/screenshots/list.png)
Public API
----------### getCurrent
`getCurrent(path, callback);`
* `path` to begin search for tiapp.xml
* `callback` returns to arguments
1. `err` - error message
2. `res` - object with:
`current` - list of modules used in the current app ( {name, platform, version} );
`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` - list of modules used in the current app ( {name, platform, version} );
`path` - path where `tiapp.xml` was found
`modules` - list of available modules ( {name, platform, version, scope} );