Skip to content
Back to skills

1250 Fn 915 14c3cb9f

ASecurity

Create CLI entry point with argument parsing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
developmenttypescript

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 1250-fn-915_14c3cb9f --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1250 Fn 915 14c3cb9f?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1250 Fn 915 14c3cb9f
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1250-fn-915-14c3cb9f/badge)](https://www.skillsdirectory.com/skills/tools-only-1250-fn-915-14c3cb9f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# fn-9.15 CLI entry point

## Description

Create CLI entry point with argument parsing.

### File

`src/index.ts`

### CLI options

```
flow-next-tui [options]

Options:
  --light              Use light theme
  --no-emoji           Use ASCII icons instead of unicode
  --run <id>           Select specific run
  -h, --help           Show help
  -v, --version        Show version
```

### --no-emoji behavior

Replaces unicode icons with ASCII equivalents:
- Status: `●` → `[x]`, `◉` → `[>]`, `○` → `[ ]`, `⊘` → `[!]`
- Tools: `→` → `>`, `⚡` → `$`, `◆` → `*`
- Header: `▸` → `>`, `⏸` → `||`, `✓` → `ok`

Propagate via `RenderOptions.useAscii` to all components.

### Implementation

Use commander for parsing.

### Shebang

First line of `src/index.ts`:
```typescript
#!/usr/bin/env bun
```

Required for global npm installs to work.

### Entry flow

1. Parse args
2. Create App with options
3. Start TUI render loop
4. Handle SIGINT/SIGTERM for cleanup
## Acceptance
- [ ] `bun run src/index.ts --help` shows usage
- [ ] `--light` switches to light theme
- [ ] `--run <id>` selects specific run
- [ ] `--no-emoji` switches to ASCII icons throughout
- [ ] `--version` shows package version
- [ ] Ctrl+C exits cleanly
- [ ] Shebang present: `#!/usr/bin/env bun`
## Done summary
- Wired index.ts to createApp() with options mapping
- Added --run <id> option (was positional, now proper option per spec)
- Added signal handlers before parseAsync
- Verified: --help, --version, shebang all work
- Tests pass (386), lint clean
## Evidence
- Commits: 5b8b6cde99931c6c4fadc5f1d3826c9270f18867
- Tests: bun test
- PRs:

Files in this skill

  • README.md799 B
  • skill.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…