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