cmdname_ios.go 335 B

1234567891011121314151617181920
  1. // Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build ios
  5. // +build ios
  6. package version
  7. import (
  8. "os"
  9. )
  10. func CmdName() string {
  11. e, err := os.Executable()
  12. if err != nil {
  13. return "cmd"
  14. }
  15. return e
  16. }