Skip to content

Instantly share code, notes, and snippets.

@soulim
Created April 11, 2020 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulim/19e9379ebb8f4c33489f82cba6b8c788 to your computer and use it in GitHub Desktop.
Save soulim/19e9379ebb8f4c33489f82cba6b8c788 to your computer and use it in GitHub Desktop.
#!/usr/bin/env fish
# bin/import: Import transactions via Actual API.
#
# Example:
#
# >_ bin/import --budget=My-Finances-7667d56 \
# --account=Checking \
# data/Checking-*.json
# TODO: Add --help option
argparse 'b/budget=' 'a/account=' -- $argv
for pathname in $argv
./import/bin/import $_flag_budget $_flag_account (realpath $pathname)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment