question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Examples of Usage with Oclif

See original GitHub issue

Are there any examples available where Ink is used with oclif?

Oclif has some magic that happens in development where it looks at pre-build files to determine what commands are. And when using with ts, where you need to use the tsx extension to enable jsx, oclif won’t pick up tsx files.

Not anything Ink can fix, just curious if there are any examples. I’d rather not use babel if I can help it 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
sahilpabalecommented, Jul 12, 2022

Hey, would be great to have examples using Oclif + Ink… is it in the pipe ?

Even I’m trying to build a CLI using Oclif and Ink. If I succeed in doing so, I will open-source it for everyone and make sure oclif attributes it for everyone’s reference!

2reactions
JakeDawkinscommented, Dec 4, 2019

In case anyone stumbles upon this in the future, It looks like oclif was having trouble because it was picking up the project’s tsconfig.json and merging it with its own internal one (what??). So renaming the config something else was able to unblock this from working. Hopefully we’ll have a CLI to show as proof soon! 😃 For now, just a WIP PR 💪 https://github.com/apollographql/apollo-tooling/pull/1697

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples · oclif: The Open CLI Framework
Here are some examples to get an idea of how to use oclif in various setups.
Read more >
oclif/example-multi-ts - GitHub
example multi-command CLI built with typescript. Contribute to oclif/example-multi-ts development by creating an account on GitHub.
Read more >
How to Build a Simple CLI with oclif - Level Up Coding
We'll use the oclif generate command to create our project, which will scaffold a new CLI project with some sensible defaults. Projects created ......
Read more >
Top 5 @oclif/command Code Examples - Snyk
Learn more about how to use @oclif/command, based on @oclif/command code examples created from the most popular ways it is used in public...
Read more >
How to Easily Create CLIs Using OCLIF (and How We Did It ...
For simple CLIs, you can use something like TJ Holowaychuk's (of express.js ... Here is an example folder structure for a command called...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found