Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Mar 6, 2023
1 parent a78150d commit 4478272
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 34 deletions.
25 changes: 0 additions & 25 deletions cmd/clone.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/clone_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/urfave/cli/v2"
)

func cmdCloneFunc() *cli.Command {
func cmdClone() *cli.Command {
return &cli.Command{
Name: "clone",
Action: clone,
Expand Down
17 changes: 9 additions & 8 deletions cmd/clone_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@
package cmd

import (
"errors"

"github.com/urfave/cli/v2"
)

func cmdCloneFunc() *cli.Command {
func cmdClone() *cli.Command {
return &cli.Command{
Name: "clone",
Category: "TOOL",
Description: `This feature is not supported on Windows.`,
Action: func(*cli.Context) error {
return errors.New("not supported")
Name: "clone",
Action: clone,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "cp",
Usage: "create files with current uid,gid,umask (like 'cp')"},
},
Category: "TOOL",
Description: `This command can clone a file or directory without copying the underlying data.`,
}
}

0 comments on commit 4478272

Please sign in to comment.