Skip to content

Commit 9dd03b6

Browse files
butonicfschade
authored andcommitted
small fixes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
1 parent 3a2a388 commit 9dd03b6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

services/auth-app/pkg/command/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ func Create(cfg *config.Config) *cobra.Command {
114114
"",
115115
"user to create the app-token for",
116116
)
117-
createCmd.Flags().String(
117+
createCmd.Flags().Duration(
118118
"expiration",
119-
"72h",
119+
time.Hour*72,
120120
"expiration of the app password, e.g. 72h, 1h, 1m, 1s. Default is 72h.",
121121
)
122122

services/storage-users/pkg/command/trash_bin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ func restoreAllTrashBinItems(cfg *config.Config) *cobra.Command {
191191
if err != nil {
192192
return err
193193
}
194-
assumeYes, _ := cmd.Flags().GetBool("yes")
195-
if !assumeYes {
194+
applyYesFlag, _ := cmd.Flags().GetBool("yes")
195+
if !applyYesFlag {
196196
for {
197197
fmt.Printf("Found %d items that could be restored, continue (Y/n), show the items list (s): ", len(res.GetRecycleItems()))
198198
var i string

0 commit comments

Comments
 (0)