diff options
| author | Simon Law <sfllaw@sfllaw.ca> | 2025-03-14 11:47:57 -0700 |
|---|---|---|
| committer | Mario Minardi <mario@tailscale.com> | 2025-04-07 16:10:20 -0600 |
| commit | b13343e37e4e140d6144ac29b87654daeb509a54 (patch) | |
| tree | ef856ca3b7c17eebb6bc0cda871d8c2e17b95a0a /smallzstd | |
| parent | 0655dd7b3da74697e190d67e95c6dbef5ad01060 (diff) | |
| download | tailscale-mpminardi/temp.tar.xz tailscale-mpminardi/temp.zip | |
cmd/tailscale: get command for printing settingsmpminardi/temp
For symmetry, `tailscale get` is the complement of `tailscale set`.
For every `tailscale set --SETTING`, there is now a corresponding
`tailscale get SETTING`.
While users were able to use `tailscale debug --prefs | jq .SETTING`
to extract their settings, this requires an external tool. To add
insult to injury, the names of the settings don’t always match the
keys in the JSON. For example, the `accept-dns` setting is called
`.CorpDNS`. And `advertise-exit-node` is just user-hostile.
This patch also contains tests that try to keep `getSettings` aligned
with the `setFlagSet` and `upFlagSet` flags for the `set` and `up`
commands, respectively. As a happy side-effect, this also checks that
the default values of these flags are consistent with the actual
default settings.
Closes: #2130
Signed-off-by: Simon Law <sfllaw@sfllaw.ca>
Diffstat (limited to 'smallzstd')
0 files changed, 0 insertions, 0 deletions
