Skip to content

Commit f0a8874

Browse files
committed
update
1 parent 50e77d7 commit f0a8874

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

internal/builders/nodejs/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Commands
2+
3+
## ci
4+
`<binary> ci --directory="path/to/dir" --arguments="--ignore-scripts, --other-flag"`
5+
6+
## run
7+
`<binary> run --directory="path/to/dir" --scripts="script1, script2"`
8+
9+
## pack
10+
`<binary> pack --directory="path/to/dir"`
11+
12+
## publish
13+
`<binary> publish --directory="path/to/dir"`

internal/builders/nodejs/ci.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func ciCmd(check func(error)) *cobra.Command {
2828
c := &cobra.Command{
2929
Use: "ci",
3030
Short: "Run ci command",
31-
Long: `Run ci command to install dependencies of a node project.`,
31+
Long: `Run ci command to install dependencies of a node project. Example: ./binary ci --arguments="--ignore-scripts, --other-flag"`,
3232

3333
Run: func(cmd *cobra.Command, args []string) {
3434
fmt.Println(ciArguments)

internal/builders/nodejs/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func runCmd(check func(error)) *cobra.Command {
2828
c := &cobra.Command{
2929
Use: "run",
3030
Short: "Run scripts",
31-
Long: `Run scripts.`,
31+
Long: `Run scripts. Example: ./binary run --scripts="script1, script2"`,
3232

3333
Run: func(cmd *cobra.Command, args []string) {
3434
fmt.Println(runScripts)

0 commit comments

Comments
 (0)