kurz.go 1.4 KB

123456789101112131415161718192021222324252627282930
  1. // Package kurz contains the Kurz client command.
  2. package main
  3. /*
  4. kurz
  5. -v Verbose (default: false).
  6. --url Access kurzd on this RedirectURL: (default: https://localhost:443, then http://localhost:80)
  7. -h, --help Display help.
  8. check <url> Show information about a Kurz RedirectURL (default command). Exit 0 if the RedirectURL is available
  9. --format json|null|text|url|yaml Use a given format for the info (default: text). For null, only return an exit code.
  10. --usage Also provide usage information (privileged)
  11. -u <user>, --user=<user> Provide a user account. Default: $KURZ_USER
  12. -p <pass>, --pass=<pass> Provide a user password. Default: $KURZ_PASS. If used without a pass, ask for one
  13. create Create a new Kurz RedirectURL
  14. --dry-run Simulate creation: do not store result.
  15. <url> Default creation
  16. <url> <domain> Create on vanity domain (restricted)
  17. <url> <vanity_url> Create as vanity RedirectURL (restricted)
  18. archive Archive a Kurz RedirectURL (restricted)
  19. --dry-run Simulate archival
  20. <url> The RedirectURL to archive
  21. purge
  22. A Kurz RedirectURL created for a Kurz RedirectURL
  23. - for the same user: the same RedirectURL.
  24. - for a different user: a different RedirectURL.
  25. */
  26. func main() {
  27. }