Well as Sergey recommend, I added logic to work with a present git in the PATH (Env var). Also I added some functionality to work with a previous path provided on a previous execution.
Summary: -Now it deals with git, if it's present at the environment -Saves a file with the path provided for futures executions. 2014-03-04 15:14 GMT-06:00 Carlos Santana <[email protected]>: > Great tool, but I echo Jesse's it will be more awesome to implement in > node, that way cross platform (linux, mac, windows) > Since node is already a requirement to run cordova-cli/plugman then should > not be a problem to assume that node is already present. > > > > On Tue, Mar 4, 2014 at 2:56 PM, Martin Gonzalez < > [email protected]> wrote: > > > I didn't consider it, but you're, this would be nice to have this feature > > running on all environment, let me check some options for node module > > environment. > > Thanks a lot for the feedback guys. > > I'll take this under serious consideration. > > > > > > -----Original message----- > > From: purplecabbage <[email protected]> > > To: "[email protected]" <[email protected]> > > Sent: Tue, 04 Mar 2014, 19:46:34 GMT+00:00 > > Subject: Re: CB-6121 (Windows command line script for Mobile spec) > > > > I looked at doing this for CB-5963, but I didn't consider writing a bat > > file.IMO this would be better served by a node module that runs > everywhere. > > > > I did not consider taking it as far as you did Martin, nice work! Have > you > > considered making it run in node so Mac users can share it? plus we would > > have the same features on all environments. > > Sent from my iPhone > > > > On Mar 4, 2014, at 11:23 AM, "Sergey Grebnov (Akvelon)" > >> > > <[email protected]> wrote: > > > >> > >> Looks very interesting, playing with this tool right now.. > >> > >> Martin, if it is not so hard could you please add logic to save git > >> > > location provided, for example in system variable. Right now I need to > > navigate to custom git location every time I run the bat. Or you can > check > > if git is in PATH. > > > >> > >> Thx! > >> Sergey > >> -----Original Message----- > >> From: [email protected] [mailto:[email protected]] On Behalf Of Michal > >> > > Mocny > > > >> Sent: Tuesday, March 4, 2014 6:44 PM > >> To: Michal Mocny > >> Cc: dev > >> Subject: Re: CB-6121 (Windows command line script for Mobile spec) > >> > >> I guess the key difference being that it runs on command prompt without > >> > > unix emulation, and also seems to be a better swiss army knife too. > Seems > > like a great tool, thanks for putting it together. > > > >> > >> I don't have access to a windows machine (Jesse, maybe you would like to > >> > > take a look?), but seeing as we have no solution for this right now, it > > seems like better than the alternative :) > > > >> > >> > >> On Tue, Mar 4, 2014 at 9:39 AM, Michal Mocny <[email protected]> > >>> wrote: > >>> > >>> Cool. > >>> > >>> I haven't dug deep yet, but was curious how this compares to: > >>> https://github.com/apache/cordova-mobile-spec/blob/master/createmobile > >>> spec.sh > >>> > >>> > >>> On Mon, Mar 3, 2014 at 5:15 PM, Martin Gonzalez Glez < > >>> [email protected]> wrote: > >>> > >>> I've just made a command line script for Mobile spec tests under > >>>> > >>> Windows. > > > >> It can handle Android, BB10, WP8, and Windows 8 platform. > >>>> So if somebody, has the opportunity to test it, I'd really like > >>>> toreceive some feedback about it, check if more capabilities or > optionscan > >>>> be added. > >>>> > >>>> Basically is a command line script file, that uses the CordovaCommand > >>>> Line Interface, git for windows, and node cordova-cli moduleto create > and > >>>> assist the test process, using cordova mobile specstest suite, that > >>>> includes manual and automated tests, to test pluginscapabilities, as > well > >>>> as stability through versions. > >>>> The script capabilities helps to simplify the test process, > >>>> obtainingall resources required or giving the chance to set them in > place, > >>>> orset where they are. > >>>> This script file it uses the cordova CLI capabilities to create, > >>>> addplatforms/plugins, as well as build, emulate and deploy to phone, > italso > >>>> uses the coho script to update some repositories, and getseveral > resources > >>>> if it's required. > >>>> > >>>> > >>>> This is the issue: https://issues.apache.org/jira/browse/CB-6121 > >>>> > >>>> Pull request with the complete description: > >>>> https://github.com/apache/cordova-mobile-spec/pull/51 > >>>> > >>>> Regards. > >>>> Martin Gonzalez > >>>> > >>> > >>> > >>> > > > > > -- > Carlos Santana > <[email protected]> >
