|
@@ -4,26 +4,26 @@ package main
|
|
/*
|
|
/*
|
|
kurz
|
|
kurz
|
|
-v Verbose (default: false).
|
|
-v Verbose (default: false).
|
|
- --url Access kurzd on this URL: (default: https://localhost:443, then http://localhost:80)
|
|
|
|
|
|
+ --url Access kurzd on this RedirectURL: (default: https://localhost:443, then http://localhost:80)
|
|
-h, --help Display help.
|
|
-h, --help Display help.
|
|
- check <url> Show information about a Kurz URL (default command). Exit 0 if the URL is available
|
|
|
|
|
|
+ check <url> Show information about a Kurz RedirectURL (default command). Exit 0 if the RedirectURL is available
|
|
--format json|null|text|url|yaml Use a given format for the info (default: text). For null, only return an exit code.
|
|
--format json|null|text|url|yaml Use a given format for the info (default: text). For null, only return an exit code.
|
|
--usage Also provide usage information (privileged)
|
|
--usage Also provide usage information (privileged)
|
|
-u <user>, --user=<user> Provide a user account. Default: $KURZ_USER
|
|
-u <user>, --user=<user> Provide a user account. Default: $KURZ_USER
|
|
-p <pass>, --pass=<pass> Provide a user password. Default: $KURZ_PASS. If used without a pass, ask for one
|
|
-p <pass>, --pass=<pass> Provide a user password. Default: $KURZ_PASS. If used without a pass, ask for one
|
|
- create Create a new Kurz URL
|
|
|
|
|
|
+ create Create a new Kurz RedirectURL
|
|
--dry-run Simulate creation: do not store result.
|
|
--dry-run Simulate creation: do not store result.
|
|
<url> Default creation
|
|
<url> Default creation
|
|
<url> <domain> Create on vanity domain (restricted)
|
|
<url> <domain> Create on vanity domain (restricted)
|
|
- <url> <vanity_url> Create as vanity URL (restricted)
|
|
|
|
- archive Archive a Kurz URL (restricted)
|
|
|
|
|
|
+ <url> <vanity_url> Create as vanity RedirectURL (restricted)
|
|
|
|
+ archive Archive a Kurz RedirectURL (restricted)
|
|
--dry-run Simulate archival
|
|
--dry-run Simulate archival
|
|
- <url> The URL to archive
|
|
|
|
|
|
+ <url> The RedirectURL to archive
|
|
purge
|
|
purge
|
|
|
|
|
|
-A Kurz URL created for a Kurz URL
|
|
|
|
- - for the same user: the same URL.
|
|
|
|
- - for a different user: a different URL.
|
|
|
|
|
|
+A Kurz RedirectURL created for a Kurz RedirectURL
|
|
|
|
+ - for the same user: the same RedirectURL.
|
|
|
|
+ - for a different user: a different RedirectURL.
|
|
*/
|
|
*/
|
|
func main() {
|
|
func main() {
|
|
|
|
|