removed comment fix & moved comment fix to sort
This commit is contained in:
@@ -32,14 +32,9 @@ type NavidromeArgs struct {
|
||||
NavidromePass string `arg:"--navidrome-pass,env:ND_PASS,required"`
|
||||
}
|
||||
|
||||
type FixCommentCmd struct {
|
||||
Path string `arg:"positional,required"`
|
||||
}
|
||||
|
||||
type args struct {
|
||||
Info *InfoCmd `arg:"subcommand:info"`
|
||||
Sort *SortCmd `arg:"subcommand:sort"`
|
||||
FixCommentTag *FixCommentCmd `arg:"subcommand:fix-comment"`
|
||||
SyncPlaylists *SyncPlaylists `arg:"subcommand:sync-playlist"`
|
||||
Verbose bool `arg:"-v" default:"false"`
|
||||
DryRun bool `arg:"--dry-run" default:"false"`
|
||||
@@ -58,8 +53,6 @@ func Run() {
|
||||
ripsort.Scan(args.Info.File)
|
||||
case args.Sort != nil:
|
||||
ripsort.Sort(args.Sort.Dst, args.Sort.Path)
|
||||
case args.FixCommentTag != nil:
|
||||
ripsort.FixComment(args.FixCommentTag.Path, args.DryRun)
|
||||
case args.SyncPlaylists != nil:
|
||||
ripsort.SyncPlaylists(
|
||||
args.SyncPlaylists.SpotifyClientID,
|
||||
|
||||
Reference in New Issue
Block a user