Volatile CLI is a tool for managing Volatile app source code.
Get the Volatile CLI:
go get github.com/volatile/volatile
NOTE: The Volatile CLI is actually only compatible with Unix-based systems.
Command
volatile new myapp
makes a new directory named "myapp" and puts bootstrap code in.
If your app will be an API, use the api
argument:
volatile new api myapp
When you are inside a Volatile app directory, just use
volatile
to automatically recompile and rerun the app every time a file change.
A ./build
file can be used to automatically execute a shell script before building and running your app.
Don't forget the shebang and the executability rights for this script!
To get updated versions of the Volatile CLI, the core and all handlers and helpers:
volatile update