mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 11:19:39 -06:00
committed by
Florian Schade
parent
3a2a38870c
commit
9dd03b6c90
@@ -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.",
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user