Skip to content
/ run Public

A task runner with YAML configuration files.

Notifications You must be signed in to change notification settings

jberghoef/run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run

Features

  • Execute commands wherever you are. Will automatically detect the closest Runfile.
  • Add additional logic to your commands, such as templates and optional executions.

Installation

go get -u -v github.com/jberghoef/run
go install -v github.com/jberghoef/run

Usage

run # Run the entire Runfile closest the the current directory.
run echo # Run a command named 'echo' in the first Runefile found.
run echo test # Run a command named 'echo' and 'test'.

Flags

run --file ../src/Runfile.yaml # Run the entire Runfile provided.
run --file ../src/Runfile.yaml test # Run a command named 'test' in the Runfile provided.
run --debug test # Run a command named 'test', use debug logging.

Example file

echo: echo hello world # Execute a command directly.
home: echo ${HOME} # Use existing environment variables.

test: # Execute a list of commands.
  - echo halt
  - echo and
  - echo catch
  - echo fire

something:
  optional: Would you like to print something? # Mark a command as optional.
  commands:
    - echo say
    - echo {{.Something}} # Use templates to enter values before executing.
    - echo loving

anything:
  command: echo {{.Something}} # Previously entered values will be remembered.

test2:
  env: # Set environment variables before executing.
    ENV_VALUE_2: halt and catch fire
    ENV_VALUE_3: ✋ 🔥
  commands:
    - echo ${ENV_VALUE_2}
    - echo ${ENV_VALUE_3}
    - :echo # Reference an other command in your file.

About

A task runner with YAML configuration files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published