From 818a18508f951a947f049351f27e9bcf56c02a91 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 27 Mar 2023 18:52:41 +0200 Subject: [PATCH] beautyfied upload form --- common/types.go | 1 + upctl/cmd/formcommands.go | 1 + 2 files changed, 2 insertions(+) diff --git a/common/types.go b/common/types.go index 0b9f4c6..57ea156 100644 --- a/common/types.go +++ b/common/types.go @@ -66,6 +66,7 @@ type Form struct { Created Timestamp `json:"uploaded"` Context string `json:"context"` Url string `json:"url"` + Notify string `json:"notify"` } const ( diff --git a/upctl/cmd/formcommands.go b/upctl/cmd/formcommands.go index ef62c36..8953791 100644 --- a/upctl/cmd/formcommands.go +++ b/upctl/cmd/formcommands.go @@ -64,6 +64,7 @@ func FormCreateCommand(conf *cfg.Config) *cobra.Command { // options formCreateCmd.PersistentFlags().StringVarP(&conf.Expire, "expire", "e", "", "Expire setting: asap or duration (accepted shortcuts: dmh)") formCreateCmd.PersistentFlags().StringVarP(&conf.Description, "description", "D", "", "Description of the form") + formCreateCmd.PersistentFlags().StringVarP(&conf.Description, "notify", "n", "", "Email address to get notified when consumer has uploaded files") formCreateCmd.Aliases = append(formCreateCmd.Aliases, "add") formCreateCmd.Aliases = append(formCreateCmd.Aliases, "+")