Toolbox for Swift Squirrel web framework (see: Swift Squirrel)
Installing
You can install toolbox to /usr/local/bin with install.sh. If you want to install it in another directory just move executable to that directory or follow steps in Custom installation. Also check install.sh -h for help
Installation script
For installation clone repositiory, cd to it and run install.sh. Make sure you have write permissions to /usr/local/bin
git clone https://github.com/Swift-Squirrel/Squirrel-ToolBox.git
cd Squirrel-ToolBox
make install
./install
This will copy result binary to /usr/local/bin and name it squirrel. After successful installation you can run squirrel help to show help
squirrel help # show help
Custom directory installation
This install toolbox to directory specified in SQUIRREL_DIR and set executable name to SQUIRREL_NAME
SQUIRREL_DIR="Your specific directory"
SQUIRREL_NAME='squirrel' #this will be new name of executable binary
After you set variables you can run theese commands to install toolbox
git clone https://github.com/Swift-Squirrel/Squirrel-ToolBox.git
cd Squirrel-ToolBox
swift package resolve && swift build -c release && mv .build/release/SquirrelToolBox "$SQUIRREL_DIR/$SQUIRREL_NAME"
if [[ $? != 0 ]]; then echo "Installation failed"; else echo "Installation successful"; fi
After this you should make alias or export path in your .bashrc
Usage
Toolbox can generate new templates for squirrel framework (squirrel create), manage running app (squirrel serve, squirrel stop, squirrel ps) or watch for changes in directory and rebuild, rerun on changes (squirrel watch)
For help run
squirrel help
For specific command help you can run squirrel <command> -h for example for create command it is
squirrel create -h
Contributing
Fork it!
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git commit -am 'Add some feature'
Push to the branch: git push origin my-new-feature
Squirrel-ToolBox
Toolbox for Swift Squirrel web framework (see: Swift Squirrel)
Installing
You can install toolbox to /usr/local/bin with
install.sh
. If you want to install it in another directory just move executable to that directory or follow steps in Custom installation. Also checkinstall.sh -h
for helpInstallation script
For installation clone repositiory, cd to it and run
install.sh
. Make sure you have write permissions to /usr/local/binThis will copy result binary to /usr/local/bin and name it squirrel. After successful installation you can run
squirrel help
to show helpCustom directory installation
This install toolbox to directory specified in
SQUIRREL_DIR
and set executable name toSQUIRREL_NAME
After you set variables you can run theese commands to install toolbox
After this you should make alias or export path in your .bashrc
Usage
Toolbox can generate new templates for squirrel framework (
squirrel create
), manage running app (squirrel serve
,squirrel stop
,squirrel ps
) or watch for changes in directory and rebuild, rerun on changes (squirrel watch
)For help run
For specific command help you can run
squirrel <command> -h
for example for create command it isContributing
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Authors
See also the list of contributors who participated in this project.
License
This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details