open-nomad/website/content/docs/commands
Tim Gross 4fabad7f61
cli: fmt -check should return early on diff (#16174)
The `nomad fmt -check` command incorrectly writes to file because we didn't
return before writing the file on a diff. Fix this bug and update the command
internals to differentiate between the write-to-file and write-to-stdout code
paths, which are activated by different combinations of options and flags.

The docstring for the `-list` and `-write` flags is also unclear and can be
easily misread to be the opposite of the actual behavior. Clarify this and fix
up the docs to match.

This changeset also refactors the tests quite a bit so as to make the test
outputs clear when something is incorrect.
2023-02-15 14:06:31 -05:00
..
acl Add -json and -t flag for nomad acl token create command (#16055) 2023-02-07 12:05:41 +01:00
alloc docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
config docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
deployment docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
eval docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
job Change job init default to example.nomad.hcl and recommend in docs (#15997) 2023-02-02 11:47:47 -06:00
license docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
namespace docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
node renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
operator cli: remove deprecated keyring and keygen commands (#16068) 2023-02-07 09:49:52 -05:00
plugin docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
quota doc: specifiy the default output is of json format for nomad quota inspect command (#15984) 2023-02-07 16:34:05 +01:00
recommendation docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
scaling docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
sentinel docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
server docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
service docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
system docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
tls docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
var docs: add variable specification docs (#16165) 2023-02-13 14:06:56 -08:00
volume docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
agent-info.mdx feat(website): migrates to new nav data format (#10264) 2021-03-31 08:43:17 -05:00
agent.mdx docs: add more warnings about running agent as root on Linux (#15926) 2023-01-27 15:22:18 -05:00
fmt.mdx cli: fmt -check should return early on diff (#16174) 2023-02-15 14:06:31 -05:00
index.mdx docs: update example license_path (#16082) 2023-02-07 16:28:51 -05:00
login.mdx acl: make auth method default across all types (#15869) 2023-01-26 14:17:11 +01:00
monitor.mdx feat(website): migrates to new nav data format (#10264) 2021-03-31 08:43:17 -05:00
status.mdx feat(website): migrates to new nav data format (#10264) 2021-03-31 08:43:17 -05:00
ui.mdx cli: allow setting namespace and region in the nomad ui command (#11364) 2021-10-21 16:24:39 -04:00
version.mdx feat(website): migrates to new nav data format (#10264) 2021-03-31 08:43:17 -05:00