flow

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

flow

Go Report Card Go Reference GitHub release

flow is a command line interface designed to make managing and running development workflows easier. It's driven by "executables" organized across workspaces and namespaces defined in a workspace.

Some common use cases includes running a set of scripts, opening an application after running setup tasks, and rendering a markdown document that is dynamically generated from data in an external system. That's just the start; all aspects of flow are meant to be easily configurable, easily discoverable, and highly extensible.

Getting Started

Installation

You can install the pre-compiled binary or compile from source. To install the latest pre-compiled binary, run the following command:

curl -sSL https://raw.githubusercontent.com/jahvon/flow/main/scripts/install.sh | bash

Alternatively, you can install the binary via Go using the following command:

go install github.com/jahvon/flow@latest

See the Development guide for more information on how to build from source.

Setting up a Workspace

A Workspace is a directory that contains workflows and configuration files for flow to manage. A workspace can be created anywhere on your system but must be registered in the User Config file in order to have executables discovered by flow.

To create a new workspace:

flow init workspace <name> <path>

This command will register the Workspace and create the root config file for you. For more information on Workspaces and it's config, see Workspaces.

Defining Executables

Executables are the core of flow. They are the workflows that flow will execute when running a workflow. Each executable is driven by its definition within an executable definition file (*.flow file). There are several types of executables that can be defined. For more information on Executables and it's config, see Executables.

Running and managing workflows

The main command for running workflows is flow exec. This command will execute the workflow with the provided executable ID. exec can be replaced with any verb but should match the verb defined in the executable's definition or an alias of the verb.

As you make changes to executables on your system, you can run flow sync to trigger a re-index of your executables.

See flow CLI documentation for more information on all available commands.

Autocompletion

Example autocompletion setup script: flow completion zsh > ~/.oh-my-zsh/completions/_flow

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL