mirror of
https://github.com/restic/restic.git
synced 2025-10-09 10:21:35 +00:00
Fix 'ls' command
CmdLs needs to implement flags.Commander, so change (CmdLs) Execute to only take a []string to get actually called.
This commit is contained in:
@@ -63,7 +63,7 @@ func (cmd CmdLs) Usage() string {
|
||||
return "snapshot-ID [DIR]"
|
||||
}
|
||||
|
||||
func (cmd CmdLs) Execute(s restic.Server, key *restic.Key, args []string) error {
|
||||
func (cmd CmdLs) Execute(args []string) error {
|
||||
if len(args) < 1 || len(args) > 2 {
|
||||
return fmt.Errorf("wrong number of arguments, Usage: %s", cmd.Usage())
|
||||
}
|
||||
|
Reference in New Issue
Block a user