It has been tough 3 weeks of conversion the node #oclif based app to terminal in browser. The business prefer #WebContainers by #StackBlitz if those been open for on-prem deployment and FedRAMP certified or at least certifiable.
Anyway it if satisfying to see as native CLI executable as it's web version.
CC #friendos

`import {MyQueryDocument} from myQuery.graphql` with strict TS checks on @apollo/client `useQuery` and `client.query()` on node app is another challenge beaten this week.

No docs or reference implementation, so have to be inventive on #linter, #typescript, #codegen config

For curious: the key is to generate `myQuery.graphql.ts` by codegen near-operation-file. works perfect in React app, in
#oclif app have to trick with

`import {MyQueryDocument} from myQuery.graphql-generated`

β€œCLI command != user intent” (yet) says @[email protected] on making CLIs even better human interfaces in his talk titled Adaptive Intent-Based CLI State Machines https://github.com/sw-yx/cli-cheatsheet #oclif #oclifconf
sw-yx/cli-cheatsheet

helpful libraries for *building* CLIs. Not a list of CLIs. - sw-yx/cli-cheatsheet

With #oclif, β€œwe found our React for the CLI.” β€”@[email protected] of @[email protected] at #oclifconf

πŸ‘¨β€πŸ”§ Cool to see what people are starting to build with
---
I had some fun with #oclif, #Typescript and #Neo4j

Thanks @jdxcode for your intro article:

https://medium.com/@mesirii/writing-a-command-line-database-client-in-10-minutes-aa608536ae4b
https://twitter.com/mesirii/status/981649055561539584

Writing a Command-Line Database Client in 10 Minutes

Using the Open Source Command Line Framework (OCLIF) with TypeScript