If all you need is "git status" you don't even need a script.
You can't do what I was initially thinking ("cd #Dir# && git status" -
works from command line but cfexecute complains that 'cd' isn't a
program), but what you can do is tell git to look at a different
directory like this:
<cfexecute
variable = "GitStatus"
name = "git --work-tree=#Dir# --git-dir=#Dir#/.git status"
timeout = 2
/>
(On Windows, if you don't have git on the path, you'll need
"C:\Program Files (x86)\Git\bin\git" there instead.)
They should be in github before too long (in assembla somewhere right
now, I think).
:Denny
--
Railo Technologies: getrailo.com Professional Open Source
Skype: valliantster (505)510.1336 de...@getrailo.com
GnuPG-FP: DDEB 16E1 EF43 DCFD 0AEE 5CD0 964B B7B0 1C22 CB62
I'll holler when they're in their own project in github, but FWIW, using
the CLI jar is as easy as calling the main method with the arguments
you'd pass the command line executable.
It'll be bundled up into an extension though, so you won't have to
bother finding/installing jars, etc..
:Denny
Cool, I may try playing around with the CLI jar this weekend then. Thanks, and looking forward to checking out the extensions.
Mike