small fixes

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-12-12 16:22:18 +01:00
committed by Florian Schade
parent 3a2a38870c
commit 9dd03b6c90
2 changed files with 4 additions and 4 deletions

View File

@@ -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.",
)

View File

@@ -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