implmented rename subcommand
This commit is contained in:
@@ -9,8 +9,13 @@ type ScanCmd struct {
|
||||
File string `arg:"positional"`
|
||||
}
|
||||
|
||||
type RenameCmd struct {
|
||||
File string `arg:"positional"`
|
||||
}
|
||||
|
||||
type args struct {
|
||||
Scan *ScanCmd `arg:"subcommand:scan"`
|
||||
Scan *ScanCmd `arg:"subcommand:scan"`
|
||||
Rename *RenameCmd `arg:"subcommand:rename"`
|
||||
}
|
||||
|
||||
func Run() {
|
||||
@@ -20,5 +25,7 @@ func Run() {
|
||||
switch {
|
||||
case args.Scan != nil:
|
||||
oplcli.Scan(args.Scan.File, oplcli.Config{})
|
||||
case args.Rename != nil:
|
||||
oplcli.Rename(args.Rename.File, oplcli.Config{})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user