# fast-forward

Just throwing out some code, feel free to gut this.

On Windows I put this in a file `ff.bat` in a global path:

```
@echo off
call php C:\wnmap\public\cli-launch\cli-launch.php %*
call C:\wnmap\public\cli-launch\cli-launch.temp.bat
```

The PHP script will write the command you want to run in the batch file and afterwards it will be run.  
I could not find another way to `cd anotherdir` within PHP. chdir() didn't stick on the cli after the script exits. If you do know a way on Windows, please let us know how or send a pull request!

Also note the database schema setup is not written yet. Run assets/model.sql yourself or fix it :)

# fast-forward
Just throwing out some code, feel free to gut this.

The PHP script will write the command you want to run in the batch file and afterwards it will be run.  
I could not find another way to `cd anotherdir` within PHP. chdir() didn't stick on the cli after the script exits. If you do know a way on Windows, please let us know how or send a pull request!


## Setup
Please run an initial `composer install` in the project folder to fetch the external libraries (a simple ORM and a CLI utility).

### Windows
1. Edit the file `ff.bat` and change `ffpath` to the folder you put fast-forward in.
2. Copy `ff.bat` to a global path so that it is always available on the command line.

### Linux


### Mac


## Usage
Add a new command in one line:
`ff add <Shortcut> <Description> <Command>`
Do the same interactively:
`ff add`
List all available commands and execute the selection:
`ff`
Look for _htd*_.
If the only result is _htd_ it will be executed, otherwise all matches will be displayed.
`ff htd`

Update read me with installation and usage info
Update read me with installation and usage info