feat(cli): add plain/no-emoji/no-color + help

This commit is contained in:
Peter Steinberger
2025-12-26 14:14:31 +01:00
parent 4730267c2a
commit c35e937b2a
5 changed files with 290 additions and 126 deletions
+12 -1
View File
@@ -2,7 +2,18 @@ import { describe, expect, it } from 'vitest';
import { looksLikeTweetInput, resolveCliInvocation } from '../src/lib/cli-args.js';
describe('cli-args', () => {
const known = new Set(['tweet', 'reply', 'read', 'replies', 'thread', 'search', 'mentions', 'whoami', 'check']);
const known = new Set([
'tweet',
'reply',
'read',
'replies',
'thread',
'search',
'mentions',
'help',
'whoami',
'check',
]);
it('detects tweet URLs', () => {
expect(looksLikeTweetInput('https://x.com/user/status/1234567890')).toBe(true);