adding lock command, generalizing the checkfiletypes function
This commit is contained in:
@@ -34,7 +34,7 @@ func validateFileType(path string, inputType string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func checkIgnores(input string, inputType string, ignores clientconfig.Ignore) error {
|
||||
func checkFileTypes(input string, inputType string, ignores clientconfig.FileTypes) error {
|
||||
switch inputType {
|
||||
case "file":
|
||||
fileExt := filepath.Ext(input) // TODO more sanity checking on ext
|
||||
|
Reference in New Issue
Block a user