dm: cleanup CLI UX for people getting started
Before this patch dm would print out the wall of usage text that would scroll off the screen in many error cases. This made learning dm hard. Instead have more compact error output, like kubectl, and only return non-zero on real errors. ``` $ dm foo ; echo $? Error: unknown command 'foo' for 'dm' Run 'dm --help' for usage 1 $ dm deployed-instances; echo $? No type name supplied 1 $ dm 2> /dev/null; echo $? 0 ``` There is more to do to make this tool friendlier but this was low-hanging.
Showing
+12 -11
Please register or sign in to comment