}varrootSubcommands=map[string]*cmds.Command{"daemon":daemonCmd,// TODO name"init":initCmd,// TODO name"tour":cmdTour,}funcinit(){// setting here instead of in literal to prevent initialization loop// (some commands make references to Root)Root.Subcommands=rootSubcommands// copy all subcommands from commands.Root into this root (if they aren't already present)fork,v:=rangecommands.Root.Subcommands{if_,found:=Root.Subcommands[k];!found{Root.Subcommands[k]=v}}