mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-22 08:24:25 +01:00
V2 certificate format (#1216)
Co-authored-by: Nate Brown <nbrown.us@gmail.com> Co-authored-by: Jack Doan <jackdoan@rivian.com> Co-authored-by: brad-defined <77982333+brad-defined@users.noreply.github.com> Co-authored-by: Jack Doan <me@jackdoan.com>
This commit is contained in:
@@ -57,7 +57,6 @@ func execCommand(c *Command, args []string, w StringWriter) error {
|
||||
func dumpCommands(c *radix.Tree, w StringWriter) {
|
||||
err := w.WriteLine("Available commands:")
|
||||
if err != nil {
|
||||
//TODO: log
|
||||
return
|
||||
}
|
||||
|
||||
@@ -67,10 +66,7 @@ func dumpCommands(c *radix.Tree, w StringWriter) {
|
||||
}
|
||||
|
||||
sort.Strings(cmds)
|
||||
err = w.Write(strings.Join(cmds, "\n") + "\n\n")
|
||||
if err != nil {
|
||||
//TODO: log
|
||||
}
|
||||
_ = w.Write(strings.Join(cmds, "\n") + "\n\n")
|
||||
}
|
||||
|
||||
func lookupCommand(c *radix.Tree, sCmd string) (*Command, error) {
|
||||
@@ -119,8 +115,6 @@ func helpCallback(commands *radix.Tree, a []string, w StringWriter) (err error)
|
||||
// We are printing a specific commands help text
|
||||
cmd, err := lookupCommand(commands, a[0])
|
||||
if err != nil {
|
||||
//TODO: handle error
|
||||
//TODO: message the user
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user