Skip to content

Commit 64c983d

Browse files
committed
bump: 1.0.2
1 parent 540049f commit 64c983d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

cmd/scan.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ import (
55
"github.com/subzero-cli/subzero/services"
66
)
77

8-
var dirFlag string
8+
var directory string
9+
var defaultDirectory = "./"
910

1011
// scanCmd represents the scan command
1112
var scanCmd = &cobra.Command{
1213
Use: "scan",
1314
Short: "Scan files for identify movies, series and tvshows",
1415
Run: func(cmd *cobra.Command, args []string) {
15-
services.StartFileScan(dirFlag)
16+
services.StartFileScan(directory)
1617

1718
},
1819
}
1920

2021
func init() {
2122
rootCmd.AddCommand(scanCmd)
23+
scanCmd.PersistentFlags().StringVarP(&directory, "dir", "d", defaultDirectory, "Directory path to scan")
2224

23-
scanCmd.Flags().StringVarP(&dirFlag, "dir", "d", "./", "Directory to scan")
2425
}

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OS=$(uname -s)
44

55
ARCH=$(uname -m)
66

7-
VERSION=1.0.1
7+
VERSION=1.0.2
88

99
URL="https://github.com/subzero-cli/subzero/releases/download/v$VERSION/"
1010

0 commit comments

Comments
 (0)