mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
4b8f5746ef
commit
25aa5b667c
|
@ -2,13 +2,12 @@ package fs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/databricks/cli/cmd/root"
|
"github.com/databricks/cli/cmd/root"
|
||||||
"github.com/databricks/cli/libs/filer"
|
|
||||||
"github.com/databricks/databricks-sdk-go/service/files"
|
"github.com/databricks/databricks-sdk-go/service/files"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var rmCmd = &cobra.Command{
|
var rmCmd = &cobra.Command{
|
||||||
Use: "rm <dir-name>",
|
Use: "rm DIR_PATH",
|
||||||
Short: "Remove files and directories from dbfs.",
|
Short: "Remove files and directories from dbfs.",
|
||||||
Long: `Remove files and directories from dbfs.`,
|
Long: `Remove files and directories from dbfs.`,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
|
@ -18,7 +17,7 @@ var rmCmd = &cobra.Command{
|
||||||
ctx := cmd.Context()
|
ctx := cmd.Context()
|
||||||
w := root.WorkspaceClient(ctx)
|
w := root.WorkspaceClient(ctx)
|
||||||
|
|
||||||
path, err := filer.ResolveDbfsPath(args[0])
|
path, err := resolveDbfsPath(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue