From 9dd03b6c904cfa32cf732ad7dafcc00c0bc52cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 12 Dec 2025 16:22:18 +0100 Subject: [PATCH] small fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- services/auth-app/pkg/command/create.go | 4 ++-- services/storage-users/pkg/command/trash_bin.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/auth-app/pkg/command/create.go b/services/auth-app/pkg/command/create.go index fc889cfd74..115f1600d2 100644 --- a/services/auth-app/pkg/command/create.go +++ b/services/auth-app/pkg/command/create.go @@ -114,9 +114,9 @@ func Create(cfg *config.Config) *cobra.Command { "", "user to create the app-token for", ) - createCmd.Flags().String( + createCmd.Flags().Duration( "expiration", - "72h", + time.Hour*72, "expiration of the app password, e.g. 72h, 1h, 1m, 1s. Default is 72h.", ) diff --git a/services/storage-users/pkg/command/trash_bin.go b/services/storage-users/pkg/command/trash_bin.go index 50def1ab52..8c3b59f7cc 100644 --- a/services/storage-users/pkg/command/trash_bin.go +++ b/services/storage-users/pkg/command/trash_bin.go @@ -191,8 +191,8 @@ func restoreAllTrashBinItems(cfg *config.Config) *cobra.Command { if err != nil { return err } - assumeYes, _ := cmd.Flags().GetBool("yes") - if !assumeYes { + applyYesFlag, _ := cmd.Flags().GetBool("yes") + if !applyYesFlag { for { fmt.Printf("Found %d items that could be restored, continue (Y/n), show the items list (s): ", len(res.GetRecycleItems())) var i string