Asama 1.3 — Support -o/--output flag for all commands #40

Closed
opened 2026-05-26 19:51:47 +03:00 by saqut · 0 comments
Owner

Goal: All CLI commands respect -o outputfile to write results to a file instead of stdout.

Files to modify:

  • src/cli/commands/run.hpp
  • src/cli/commands/tokens.hpp
  • src/cli/commands/symbols.hpp

Requirements:

  • cmdRun, cmdTokens, cmdSymbols already partially support -o; ensure all do.
  • If -o is provided, write output to the specified file; otherwise stdout.
  • Handle file open errors gracefully.

Success criteria:

  • saqut tokens source.sqt -o tokens.txt writes to file.
  • saqut symbols source.sqt --output=symbols.json writes JSON to file.
**Goal:** All CLI commands respect -o outputfile to write results to a file instead of stdout. **Files to modify:** - src/cli/commands/run.hpp - src/cli/commands/tokens.hpp - src/cli/commands/symbols.hpp **Requirements:** - cmdRun, cmdTokens, cmdSymbols already partially support -o; ensure all do. - If -o is provided, write output to the specified file; otherwise stdout. - Handle file open errors gracefully. **Success criteria:** - saqut tokens source.sqt -o tokens.txt writes to file. - saqut symbols source.sqt --output=symbols.json writes JSON to file.
saqut closed this issue 2026-06-14 21:53:26 +03:00
Sign in to join this conversation.
No description provided.