Skip to content

CLI tool for switching configuration files within Titanium App

Notifications You must be signed in to change notification settings

TheBookPeople/ti-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ti-switch

Build Status npm version Code Climate Test Coverage

CLI tool for switching configuration files within Titanium App.

Install

sudo npm install ti-switch

Example

To switch to use the dev version of files run the following command. This needs to be run from the root directory of your titanium application.

ti-switch dev

This will the search for any files in the app folder that end with .dev. The file will then be copied to the same location but without the .dev extension. This will overwriting any existing file.

e.g

./app/fileOne.txt.dev would be coppied to ./app/fileOne.txt

Full Usage

ti-switch --help

Usage: ti-switch <enviroment> - e.g prod, ppt or dev

Simple CLI to manage configuration files.

Options:

  -h, --help     output usage information
  -v, --version  output the version number

About

CLI tool for switching configuration files within Titanium App

Resources

Stars

Watchers

Forks

Packages

No packages published