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.

RFC: better swizzle cli

See original GitHub issue

🚀 Feature

The swizzle cli experience works, but is a but rough and could be improved

Pitch

Here I’m using yarn workspace docusaurus-2-website swizzle ... in the screeshots (as I’m using D2 website for testing), but replace in your mind with yarn swizzle ...

Here are some suggestions


Display all the installed theme names with yarn swizzle, instead of:

image


On theme name typo, better error with theme name suggestions:

image


Do not swizzle the whole theme files with yarn swizzle @docusaurus/theme-classic, insead display available names to swizzle. (breaking change)

image


Typo on swizzle component name: same as theme, suggest valid names instead o:

image


Allow swizzling the whole theme files with an --all option: yarn swizzle @docusaurus/theme-classic --all

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
anshulrgoyalcommented, Jul 3, 2020

hey @anshulrgoyal , maybe from the module path you could read the package.json in it, to get the name attribute?

Did same in my pr.

1reaction
anshulrgoyalcommented, Jul 1, 2020

@slorber I am working on this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Other RFC, creating (CLI) - AMS Advanced Onboarding Guide
This example shows how to request a change that none of the available CTs address, by using the Management | Other | Other...
Read more >
Docusaurus 2.0 on Twitter: "Let's start with stats and community ...
We are working on the last bits, in particular: - a more explicit theming API surface, less likely to break on upgrades -...
Read more >
IRC Logs of #dri-devel on irc.freenode.net for 2021-04-27
09:50 melissawen: danvet, pq I think to improve comments only for blend function ... 12:26 hwentlan: emersion: btw, the current RFC is addressing...
Read more >
wasmtime Changelog - pyup.io
The `wasmtime` CLI executable now supports a `--max-wasm-stack` flag. ... improve the compile time of the `cranelift-codegen` crate.
Read more >
Download openejb-webservices-4.6.0.1.jar file - Java2s.com
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for ......
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