"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)
Activate your new Arvados user account.
<pre>
-# arv root user setup exampleUserName
+# arv sudo user setup exampleUserName
</pre>
Run the diagnostics tool to ensure everything is working.
<pre>
-# arv root diagnostics
+# arv sudo diagnostics
</pre>
h2. Customize the cluster
err = fmt.Errorf("%v: %w", cmd.Args, err)
return 1
}
- cmd = exec.CommandContext(ctx, "arv", "root", "keep", "docker", "alpine")
+ cmd = exec.CommandContext(ctx, "arv", "sudo", "keep", "docker", "alpine")
cmd.Stdout = stderr
cmd.Stderr = stderr
err = cmd.Run()