lightspeedcli
v0.1.1
Published
Swiftly run workflow commands from your terminal.
Readme
Lightspeed CLI
Lightspeed is a brilliantly powerful CLI tool to create and manage workflows - multi-line commands with arguments.
Installation
npm install -g lightspeedcliUpdating
npm install -g lightspeedcli@latestWorkflows
# Move to package directory
original_dir=$(pwd)
cd ~/Workspaces/{{package}}
# Build
npm run build
package_file=$(npm pack --silent | tail -n 1)
# Install in present directory
cd "$original_dir"
npm install "file:~/Workspaces/{{package}}/$package_file"This is a workflow. This workflow is designed to build, and install a local npm package in the current workflow for testing. It's a complex, multi-step process you may have to do via CLI, and is perfect for Lightspeed to automate.
Lightspeed allows you to write workflows like this (including the comments!), and will execute each line. It will provide you with the output of each line, and should your workflow fail, will point to the failure point.
Workflows like this one also accept arguments, denoted by the {{curlyBraces}}. These allow you to pass either free-text or multi-option parameters into the command at runtime, allowing you greater flexibility with your commands.
