Skip to content
This repository was archived by the owner on May 18, 2021. It is now read-only.

Commit 9bfeaa9

Browse files
committed
Tweak usage text
1 parent a763a43 commit 9bfeaa9

File tree

2 files changed

+24
-28
lines changed

2 files changed

+24
-28
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,21 @@ chef-runner is a simple command-line tool that has a couple of options:
131131
```
132132
Usage: chef-runner [options] [--] [<recipe>...]
133133
134-
-h, --help Show help text
135-
--version Show program version
134+
-H, --host <name> Name of host reachable over SSH
135+
-M, --machine <name> Name or UUID of Vagrant virtual machine
136+
-K, --kitchen <name> Set name of Test Kitchen instance
136137
137-
-H, --host <name> Set hostname for direct SSH access
138-
-M, --machine <name> Set name/UUID of Vagrant virtual machine
139-
-K, --kitchen <name> Set name of Test Kitchen instance
138+
-i, --install-chef <version> Install Chef (x.y.z, latest, true, false)
139+
default: false
140140
141-
-i, --install-chef <version> Install Chef (x.y.z, latest, true, false)
142-
default: false
141+
-F, --format <format> Chef output format (null, doc, minimal, min)
142+
default: doc
143+
-l, --log_level <level> Chef log level (debug, info, warn, error, fatal)
144+
default: info
145+
-j, --json-attributes <file> Load attributes from a JSON file
143146
144-
Options that will be passed to Chef Solo:
145-
146-
-F, --format <format> Set output format (null, doc, minimal, min)
147-
default: doc
148-
-l, --log_level <level> Set log level (debug, info, warn, error, fatal)
149-
default: info
150-
-j, --json-attributes <file> Load attributes from a JSON file
147+
-h, --help Show help text
148+
--version Show program version
151149
```
152150

153151
### Running Chef Recipes

usage.go

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,21 @@ import (
99

1010
var usage = `Usage: chef-runner [options] [--] [<recipe>...]
1111
12-
-h, --help Show help text
13-
--version Show program version
12+
-H, --host <name> Name of host reachable over SSH
13+
-M, --machine <name> Name or UUID of Vagrant virtual machine
14+
-K, --kitchen <name> Set name of Test Kitchen instance
1415
15-
-H, --host <name> Set hostname for direct SSH access
16-
-M, --machine <name> Set name/UUID of Vagrant virtual machine
17-
-K, --kitchen <name> Set name of Test Kitchen instance
16+
-i, --install-chef <version> Install Chef (x.y.z, latest, true, false)
17+
default: false
1818
19-
-i, --install-chef <version> Install Chef (x.y.z, latest, true, false)
20-
default: false
19+
-F, --format <format> Chef output format (null, doc, minimal, min)
20+
default: doc
21+
-l, --log_level <level> Chef log level (debug, info, warn, error, fatal)
22+
default: info
23+
-j, --json-attributes <file> Load attributes from a JSON file
2124
22-
Options that will be passed to Chef Solo:
23-
24-
-F, --format <format> Set output format (null, doc, minimal, min)
25-
default: doc
26-
-l, --log_level <level> Set log level (debug, info, warn, error, fatal)
27-
default: info
28-
-j, --json-attributes <file> Load attributes from a JSON file
25+
-h, --help Show help text
26+
--version Show program version
2927
`
3028

3129
// Flags stores the options and arguments passed on the command line.

0 commit comments

Comments
 (0)