UNPKG

1.86 kBMarkdownView Raw
1Freedcamp Script Runner
2=======================
3
4The best script runner of ALL time!
5
6# Installation
7
8```bash
9yarn add -D fscripts
10```
11
12We recommend to add the following line to your `package.json`
13
14```json5
15{
16 "scripts": {
17 "fsr": "fsr",
18 "start": "fsr start",
19 "list": "fsr list"
20 }
21}
22```
23
24# Usage
25
26```bash
27fsr <command> [options]
28```
29
30# Commands
31
32```bash
33fsr Choose a script runner command
34fsr start Choose category then task to run
35fsr scripts Choose a script from package.json
36fsr list Select any task with text autocompletion
37fsr run Run a specific task
38fsr run-s Run a set of tasks one after another
39fsr run-p Run tasks in parallel
40fsr clear Clear recent task history
41fsr generate Generate a sample fscripts.md file from the package.json
42fsr toc Generate updated Table of Contents on top of the fscripts.md file
43
44
45Options:
46--help Show help
47--version Show version number
48```
49
50# Examples
51```bash
52fsr Choose a script runner command
53fsr start Open a task selection selector
54fsr scripts Choose a script from package.json
55fsr list Show you all tasks you can run
56fsr run start:web Run task 'start:web'
57fsr run-s start:web start:desktop Run task 'start:web' and afterwards 'start:desktop'
58fsr run-p start:web start:desktop Run task 'start:web' and at the same time 'start:desktop'
59fsr clear Clear your recently run tasks
60fsr generate Generates a sample.fscripts.md you can use as template for your fscripts file
61fsr toc Generate updated Table of Contents on top of the fscripts.md file
62```
63