17344: Rename "root" subcommand to "sudo".
[arvados.git] / cmd / arvados-client / sudo.go
similarity index 88%
rename from cmd/arvados-client/root.go
rename to cmd/arvados-client/sudo.go
index 5d9845ce4ecc7ddb316e8f0f22716fabce177a4e..94c2d275d34df9decae567aeddb0da5d554fff91 100644 (file)
@@ -15,12 +15,12 @@ import (
        "git.arvados.org/arvados.git/sdk/go/ctxlog"
 )
 
-// rootCommand runs another command using API connection info and
+// sudoCommand runs another command using API connection info and
 // SystemRootToken from the system config file instead of the caller's
 // environment vars.
-type rootCommand struct{}
+type sudoCommand struct{}
 
-func (rootCommand) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
+func (sudoCommand) RunCommand(prog string, args []string, stdin io.Reader, stdout, stderr io.Writer) int {
        ldr := config.NewLoader(stdin, ctxlog.New(stderr, "text", "info"))
        flags := flag.NewFlagSet(prog, flag.ContinueOnError)
        ldr.SetupFlags(flags)