You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscale/cli
Maisem Ali 9107b5eadf cmd/tailscale/cli: use status before doing interactive feature query
We were inconsistent whether we checked if the feature was already
enabled which we could do cheaply using the locally available status.
We would do the checks fine if we were turning on funnel, but not serve.

This moves the cap checks down into enableFeatureInteractive so that
are always run.

Updates #9984

Co-authored-by: Tyler Smalley <tyler@tailscale.com>
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2 years ago
..
bugreport.go all: update copyright and license headers 3 years ago
cert.go all: update copyright and license headers 3 years ago
cli.go cmd/tailscale/cli: make update visible in list (#8662) 2 years ago
cli_test.go cmd/tailscale,ipn: add auto-update flags and prefs (#8861) 2 years ago
configure-kube.go all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
configure-kube_test.go cmd/tailscale/cli: add "configure kubeconfig" subcommand 3 years ago
configure-synology.go all: replace /kb/ links with /s/ equivalents 3 years ago
configure.go cmd/tailscale/cli: update docs and unhide configure 3 years ago
debug.go cmd/tailscaled,*: add start of configuration file support 2 years ago
diag.go various: add detection and Taildrop for Unraid 3 years ago
diag_other.go all: update copyright and license headers 3 years ago
down.go all: update copyright and license headers 3 years ago
exitnode.go all: import x/exp/maps as xmaps to distinguish from Go 1.21 "maps" 2 years ago
exitnode_test.go cli: introduce exit-node subcommand to list and filter exit nodes 3 years ago
file.go cmd/tailscale: improve taildrop progress printer on Linux (#9878) 2 years ago
funnel.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
id-token.go all: update copyright and license headers 3 years ago
ip.go all: update copyright and license headers 3 years ago
licenses.go cmd/tailscale: refactor shared utility methods 2 years ago
login.go all: update copyright and license headers 3 years ago
logout.go all: update copyright and license headers 3 years ago
nc.go all: update copyright and license headers 3 years ago
netcheck.go cmd/tailscale/cli: fix panic in netcheck print when no DERP home 2 years ago
network-lock.go all: implement lock revoke-keys command 2 years ago
ping.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 2 years ago
risks.go util/testenv: add new package to hold InTest 2 years ago
serve_legacy.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_legacy_test.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_v2.go cmd/tailscale/cli: use status before doing interactive feature query 2 years ago
serve_v2_test.go cmd/tailscale/cli: improve error when bg serve config is present (#9961) 2 years ago
set.go cmd/tailscale/cli: unhide auto-update flags and mark update as Beta (#9954) 2 years ago
set_test.go all: update copyright and license headers 3 years ago
ssh.go all: update copyright and license headers 3 years ago
ssh_exec.go all: update copyright and license headers 3 years ago
ssh_exec_js.go all: update copyright and license headers 3 years ago
ssh_exec_windows.go all: update copyright and license headers 3 years ago
ssh_unix.go types/logger, cmd/tailscale/cli: flesh out, simplify some non-unix build tags 2 years ago
status.go tailcfg,cmd/tailscale: add UrgentSecurityUpdate flag to ClientVersion (#9848) 2 years ago
switch.go all: update copyright and license headers 3 years ago
up.go tailcfg,cmd/tailscale: add UrgentSecurityUpdate flag to ClientVersion (#9848) 2 years ago
update.go cmd/tailscale/cli: unhide auto-update flags and mark update as Beta (#9954) 2 years ago
version.go cmd/tailscale/cli,clientupdate: extract new clientupdate package (#8827) 2 years ago
web.go client/web: remove unused context param from NewServer 2 years ago
web_test.go client/web: extract web client from cli package 2 years ago