@FokkeZB brought up in #21 that a CLI for tiapp.xml would be beneficial. The initial idea in there was exposing only a subsection of the tiapp.xml API via CLI. I'd like to design a way that exposes the entire API reasonably.
My initial thoughts are something like this, which is not quite complete, but not far off:
usage: tiapp cmd target [value...]
examples:
# get
tiapp get version
tiapp get sdk-version
tiapp get property ti.defaultunit
# set
tiapp set version 3.4.0.GA
tiapp set property ti.defaultunit dp
tiapp set property ti.defaultunit dp string
tiapp set deploymentTargets android,ipad,iphone
#remove
tiapp remove property ti.defaultunit
tiapp remove module ti.paint
tiapp remove module ti.paint android
tiapp remove plugin ti.alloy
All commands would print the same return values that invoking the module API would.
@FokkeZB brought up in #21 that a CLI for tiapp.xml would be beneficial. The initial idea in there was exposing only a subsection of the tiapp.xml API via CLI. I'd like to design a way that exposes the entire API reasonably.
My initial thoughts are something like this, which is not quite complete, but not far off:
All commands would print the same return values that invoking the module API would.