You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ "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
+
}
143
146
]
144
147
}
145
148
]
@@ -249,19 +252,19 @@ We run both user-oriented and automation-oriented commands in automated tests as
249
252
250
253
These commands are centered around a user making changes to a project (manually from the shell / command line), not a computer building/deploying it:
251
254
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.
265
268
266
269
They try to help the user with interactive prompts / menus.
267
270
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
273
276
274
277
These commands are intended to be run as part of build systems / deployment pipelines (in addition to being run by human users):
275
278
276
-
*`cfbs download`: Download all modules / dependencies for the project.
279
+
-`cfbs download`: Download all modules / dependencies for the project.
277
280
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.
279
282
Download modules if necessary.
280
283
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.
282
285
Includes both the specification for what the module accepts as well as the user's responses.
283
286
Can be used on modules not yet added to project to get just the specification.
284
287
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.
288
291
Non-interactive version of `cfbs input`, takes the input as a JSON, validates it and stores it.
289
292
`cfbs set-input` and `cfbs get-input` can be thought of as ways to save and load the input file.
290
293
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).
291
294
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).
294
297
May be expanded to validate other files and formats in the future.
295
298
**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.
0 commit comments