mirror of
https://github.com/rclone/rclone.git
synced 2025-12-26 05:03:43 +00:00
gendocs: ignore missing rclone_mount.md, rclone_nfsmount.md, rclone_serve_nfs.md on windows
This commit is contained in:
@@ -170,8 +170,18 @@ rclone.org website.`,
|
|||||||
name := filepath.Base(path)
|
name := filepath.Base(path)
|
||||||
cmd, ok := commands[name]
|
cmd, ok := commands[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
if name == "rclone_mount.md" && runtime.GOOS == "darwin" {
|
switch runtime.GOOS {
|
||||||
return nil // won't exist without -tags cmount
|
case "darwin":
|
||||||
|
if name == "rclone_mount.md" {
|
||||||
|
return nil // won't exist without -tags cmount
|
||||||
|
}
|
||||||
|
case "windows":
|
||||||
|
switch name {
|
||||||
|
case "rclone_mount.md":
|
||||||
|
return nil // won't exist without -tags cmount
|
||||||
|
case "rclone_nfsmount.md", "rclone_serve_nfs.md":
|
||||||
|
return nil // not supported
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return fmt.Errorf("didn't find command for %q", name)
|
return fmt.Errorf("didn't find command for %q", name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user