Refactor Script Structure and Introduce CSV Export Option #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nick/wallos-fetcher#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Refactor
wallos-fetch.shto use a modular structure and add support for exporting subscription data in CSV format. This enhancement improves maintainability and expands the script’s utility for users who prefer spreadsheet workflows.Proposed Behavior
The updated
wallos-fetch.shscript will:fetch_data,output_markdown,output_csv)--csvflagmktemp--md, default) and JSON (--json) output formats--outputis providedNew CLI Options
--csv--full--output--version--helpCSV Output Example
With
--csv --full:With default (non-
--full) CSV:Benefits
jq,curl) help avoid runtime surprises.Implementation Notes
json,md,csv) is encapsulated in its own function.jq's@csvfor proper escaping and compatibility.mktemp, improving safety and cleanup.