refactor: Use filepath.ToSlash explicitly for FileConfig, name, to and from params
This commit is contained in:
@@ -131,8 +131,8 @@ var operationArchiveCmd = &cobra.Command{
|
||||
return os.Open(path)
|
||||
},
|
||||
Info: info,
|
||||
Path: path,
|
||||
Link: link,
|
||||
Path: filepath.ToSlash(path),
|
||||
Link: filepath.ToSlash(link),
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -121,8 +121,8 @@ var operationUpdateCmd = &cobra.Command{
|
||||
return os.Open(path)
|
||||
},
|
||||
Info: info,
|
||||
Path: path,
|
||||
Link: link,
|
||||
Path: filepath.ToSlash(path),
|
||||
Link: filepath.ToSlash(link),
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user