Commit 4c74b592 authored by acud's avatar acud Committed by GitHub

cmd: send version info to stdout (#1660)

parent 6af9cbd7
......@@ -11,11 +11,13 @@ import (
)
func (c *command) initVersionCmd() {
c.root.AddCommand(&cobra.Command{
v := &cobra.Command{
Use: "version",
Short: "Print version number",
Run: func(cmd *cobra.Command, args []string) {
cmd.Println(bee.Version)
},
})
}
v.SetOut(c.root.OutOrStdout())
c.root.AddCommand(v)
}
......@@ -345,8 +345,8 @@ func TestBlocklisting(t *testing.T) {
t.Fatal("expected error during connection, got nil")
}
expectPeers(t, s1)
expectPeersEventually(t, s2)
expectPeersEventually(t, s1)
expectPeers(t, s2)
}
func TestTopologyNotifier(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment