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

Open
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.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#40
No description provided.