refactor(helper-cli): Replace the custom runMain
with CliktCommand.test
#7492
+9
−16
runMain
with CliktCommand.test
#7492