On Thu, Mar 7, 2024 at 5:44 AM twp...@gmail.com <twpa...@gmail.com> wrote:
> Thanks, but I'm already heavily invested in testscript with over 10K lines > of scripts and a lot of custom configuration, and commander-cli/commander > clearly lacks functionality I need. > OOC, is there anything wrong with github.com/rogpeppe/go-internal/testscript <https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript>? I've recently used it successfully on two diverse projects; it works well, it still appears to be maintained, and has good documentation for out-of-stdlib use cases. > > On Thursday, March 7, 2024 at 2:47:03 AM UTC+1 Ajay Kidave wrote: > >> 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/f6f92dd8-9033-43a0-9348-02c039c7fe90n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/f6f92dd8-9033-43a0-9348-02c039c7fe90n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAF-Rda9YW%2BT3DsqFAcifCMG1%3DTMPr-XyBPpQGehNmaPRCwmMDw%40mail.gmail.com.