feat(cli): add taskless share, a QR code for taskless.io - #440
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
taskless share: the Taskless banner over a scannable QR code for taskless.io, with`npx @taskless/cli` // www.taskless.iocentered beneath it. For showing Taskless to someone in person.https://www.taskless.io/?utm_source=cli&utm_medium=share&utm_content=<base version>. The version drops any prerelease/build suffix, so a nightly counts toward its release.uqr(zero dependencies, ESM) encodes the QR code. With color, it is drawn dark-on-bright-white with explicit ANSI colors so it scans on light and dark themes. Without color (piped,NO_COLOR) it falls back to plain half blocks, which assumes a dark theme.wizard/intro.tsnow exportsrenderBanner()andBANNER_WIDTH.renderIntro()is built from them, so the wizard's output is unchanged. The QR code and caption are centered on the banner's width.share.tsis therefore added to theno-unrouted-cli-invocationignores, with a comment saying why.--jsonprints{"url": ...}.Typecheck, lint, and the CLI tests pass locally. Not yet scanned on a phone.