run

command module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 13 Imported by: 0

README

run

A simple program that runs local npm scripts.

asciicast

Install

go install github.com/chanced/run@latest

Features

Run a known script

Run npm scripts directly with arguments:

run [script-name] [args...]
Workspaces

Specify any number of workspaces but they must come before the script name.

run -w my-workspace my-script --arg value
Discover scripts

Execute run to enter prompt mode which offers a guided selection of scripts.

Workspaces

If the root package.json contains workspaces, the globs/paths are expanded and then loaded concurently. Once all package.json have been loaded and parsed, the workspaces are offered as the first prompt.

If a single workspace is selected, the scripts available are presented as the next prompt.

If multiple workspaces are selected, only the scripts common between the selections are offered as options.

License

MIT

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