Skip to content

Commit 4de8e37

Browse files
authored
Merge pull request #237 from olehermanse/master
README.md: Reformatted with Prettier
2 parents a207699 + 67ee0d8 commit 4de8e37

1 file changed

Lines changed: 34 additions & 31 deletions

File tree

README.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ The modules you use can be written by the CFEngine team, others in the community
66

77
## CFEngine Build Repositories
88

9-
* [build-index](https://github.com/cfengine/build-index) - Index of modules
10-
* [build-website](https://github.com/cfengine/build-website) - Website
11-
* [cfbs](https://github.com/cfengine/cfbs) - Command line client
12-
* [modules](https://github.com/cfengine/modules) - Official modules provided by the CFEngine team
13-
* [module-template](https://github.com/cfengine/build-example) - Template for creating new modules
9+
- [build-index](https://github.com/cfengine/build-index) - Index of modules
10+
- [build-website](https://github.com/cfengine/build-website) - Website
11+
- [cfbs](https://github.com/cfengine/cfbs) - Command line client
12+
- [modules](https://github.com/cfengine/modules) - Official modules provided by the CFEngine team
13+
- [module-template](https://github.com/cfengine/build-example) - Template for creating new modules
1414

1515
## Installation
1616

@@ -40,10 +40,10 @@ pip install .
4040

4141
`cfbs` is implemented in Python and has a few dependencies:
4242

43-
* Python 3.5 or newer
44-
* `git` CLI installed and in PATH
45-
* `rsync`
46-
* `autoconf` for configuring masterfiles module (typical usage but not required)
43+
- Python 3.5 or newer
44+
- `git` CLI installed and in PATH
45+
- `rsync`
46+
- `autoconf` for configuring masterfiles module (typical usage but not required)
4747

4848
## Usage
4949

@@ -139,7 +139,10 @@ Here is an example of a `input.json` file with responses:
139139
"while": "Do you want the module to delete more files?",
140140
"response": [
141141
{ "path": "/tmp/virus", "why": "It's malicious." },
142-
{ "path": "/home/alice/.ssh/authorized_keys", "why": "She left the company." }
142+
{
143+
"path": "/home/alice/.ssh/authorized_keys",
144+
"why": "She left the company."
145+
}
143146
]
144147
}
145148
]
@@ -249,19 +252,19 @@ We run both user-oriented and automation-oriented commands in automated tests as
249252

250253
These commands are centered around a user making changes to a project (manually from the shell / command line), not a computer building/deploying it:
251254

252-
* `cfbs add`: Add a module to the project (local files/folders, prepended with `./` are also considered modules).
253-
* `cfbs analyse`: Same as `cfbs analyze`.
254-
* `cfbs analyze`: Analyze the policy set specified by the given path.
255-
* `cfbs clean`: Remove modules which were added as dependencies, but are no longer needed.
256-
* `cfbs help`: Print the help menu.
257-
* `cfbs info`: Print information about a module.
258-
* `cfbs init`: Initialize a new CFEngine Build project.
259-
* `cfbs input`: Enter input for a module which accepts input.
260-
* `cfbs remove`: Remove a module from the project.
261-
* `cfbs search`: Search for modules in the index.
262-
* `cfbs show`: Same as `cfbs info`.
263-
* `cfbs status`: Show the status of the current project, including name, description, and modules.
264-
* `cfbs update`: Update modules to newer versions.
255+
- `cfbs add`: Add a module to the project (local files/folders, prepended with `./` are also considered modules).
256+
- `cfbs analyse`: Same as `cfbs analyze`.
257+
- `cfbs analyze`: Analyze the policy set specified by the given path.
258+
- `cfbs clean`: Remove modules which were added as dependencies, but are no longer needed.
259+
- `cfbs help`: Print the help menu.
260+
- `cfbs info`: Print information about a module.
261+
- `cfbs init`: Initialize a new CFEngine Build project.
262+
- `cfbs input`: Enter input for a module which accepts input.
263+
- `cfbs remove`: Remove a module from the project.
264+
- `cfbs search`: Search for modules in the index.
265+
- `cfbs show`: Same as `cfbs info`.
266+
- `cfbs status`: Show the status of the current project, including name, description, and modules.
267+
- `cfbs update`: Update modules to newer versions.
265268

266269
They try to help the user with interactive prompts / menus.
267270
You can always add the `--non-interactive` to skip all interactive prompts (equivalent to pressing enter to use defaults).
@@ -273,24 +276,24 @@ In order to improve the user experience we change the behavior of these, especia
273276

274277
These commands are intended to be run as part of build systems / deployment pipelines (in addition to being run by human users):
275278

276-
* `cfbs download`: Download all modules / dependencies for the project.
279+
- `cfbs download`: Download all modules / dependencies for the project.
277280
Modules are skipped if already downloaded.
278-
* `cfbs build`: Build the project, combining all the modules into 1 output policy set.
281+
- `cfbs build`: Build the project, combining all the modules into 1 output policy set.
279282
Download modules if necessary.
280283
Should work offline if things are already downloaded (by `cfbs download`).
281-
* `cfbs get-input`: Get input data for a module.
284+
- `cfbs get-input`: Get input data for a module.
282285
Includes both the specification for what the module accepts as well as the user's responses.
283286
Can be used on modules not yet added to project to get just the specification.
284287
Empty list `[]` is returned if the module was found, but it does not accept any input.
285-
* `cfbs install`: Run this on a hub as root to install the policy set (copy the files from `out/masterfiles` to `/var/cfengine/masterfiles`).
286-
* `cfbs pretty`: Run on a JSON file to pretty-format it. (May be expanded to other formats in the future).
287-
* `cfbs set-input`: Set input data for a module.
288+
- `cfbs install`: Run this on a hub as root to install the policy set (copy the files from `out/masterfiles` to `/var/cfengine/masterfiles`).
289+
- `cfbs pretty`: Run on a JSON file to pretty-format it. (May be expanded to other formats in the future).
290+
- `cfbs set-input`: Set input data for a module.
288291
Non-interactive version of `cfbs input`, takes the input as a JSON, validates it and stores it.
289292
`cfbs set-input` and `cfbs get-input` can be thought of as ways to save and load the input file.
290293
Similar to `cfbs get-input` the JSON contains both the specification (what the module accepts and how it's presented to the user) as well as the user's responses (if present).
291294
Expected usage is to run `cfbs get-input` to get the JSON, and then fill out the response part and run `cfbs set-input`.
292-
* `cfbs generate-release-information`: An internal command used to generate JSON release information files from the [official CFEngine masterfiles](https://github.com/cfengine/masterfiles/).
293-
* `cfbs validate`: Used to validate the [index JSON file](https://github.com/cfengine/build-index/blob/master/cfbs.json).
295+
- `cfbs generate-release-information`: An internal command used to generate JSON release information files from the [official CFEngine masterfiles](https://github.com/cfengine/masterfiles/).
296+
- `cfbs validate`: Used to validate the [index JSON file](https://github.com/cfengine/build-index/blob/master/cfbs.json).
294297
May be expanded to validate other files and formats in the future.
295298
**Note:** If you use `cfbs validate` as part of your automation, scripts, and build systems, be aware that we might add more strict validation rules in the future, so be prepared to sometimes have it fail after upgrading the version of cfbs.
296299

0 commit comments

Comments
 (0)