I have had a good experience using https://github.com/commander-cli/commander for testing CLI commands. It uses a yaml file for test config. I generally avoid yaml but the commander config format is easy to work with. Never used script, the state saving between commands feature might be missing in commander-cli.
On Wednesday, March 6, 2024 at 1:52:57 PM UTC-8 twp...@gmail.com wrote: > *rsc.io/script > > On Wednesday, March 6, 2024 at 10:46:23 PM UTC+1 twp...@gmail.com wrote: > >> Internally, Go has a very nice package for integration testing >> <https://github.com/golang/go/tree/master/src/cmd/go/internal/script>. >> >> Roger Peppe <https://github.com/rogpeppe> has been doing a fantastic >> service by making it public and maintaining it as a community project at >> github.com/rogpeppe/go-internal/testscript >> <https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript>, and >> Roger's package has been extremely valuable for my project >> <https://github.com/twpayne/chezmoi> and many others. >> >> Over a quarter of a year ago, Russ Cox <https://research.swtch.com/> >> made a semi-official release of the code >> <https://pkg.go.dev/rsc.io/script> which includes several improvements >> (e.g. better modularity), but also removing critical functionality >> <https://github.com/rsc/script/issues/5> required to make rsc.io/script >> usable by other projects. >> >> Appeals to the author about how to contribute >> <https://github.com/rsc/script/issues/4> have been met with silence. >> Fundamental issues like installation failures >> <https://github.com/rsc/script/issues/3> have had no response. >> >> Does rsc.io/switch have a future? If so, how can we contribute? This is >> a fantastically useful piece of software for the Go community and we will >> all be better off if it succeeds. >> >> Regards, >> Tom >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7c9f87e4-1665-4bd5-abdf-1db10215e774n%40googlegroups.com.