Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 879 Bytes

File metadata and controls

75 lines (53 loc) · 879 Bytes

Scripts

Bare tokens select a script from godo.yaml.

Run one script

version: "0.1"

scripts:
  test: go test ./...
godo test

Runs (cwd = directory of godo.yaml):

go test ./...

dialect may be omitted; it defaults to package.

Command list

A YAML list runs in order and stops on the first failure.

scripts:
  boot:
    - echo one
    - echo two
godo --preview boot

Prints:

echo one
echo two

Doc comments

A # line without @, immediately above the key, is the script doc.

scripts:
  # run unit tests
  test: go test ./...
  vet: go vet ./...
godo --ls

Prints:

test  # run unit tests
vet

Next