Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CLI editor #11

Closed
ctengel opened this issue May 16, 2022 · 4 comments
Closed

Implement CLI editor #11

ctengel opened this issue May 16, 2022 · 4 comments
Assignees
Milestone

Comments

@ctengel
Copy link
Owner

ctengel commented May 16, 2022

This implements a portion of #8

  • $ tbt-edit con add p1 p2
    • -i interactively prompt for distance, tracks; display average len etc
    • -l specify length
    • -t... specify track colors
    • if no options do not specify any
  • $ tbt-edit con mod p1 p2
    • -l specify length
    • -t... specify track colors
    • if no options, go interactive
  • $ tbt-edit con del p1 p2
  • $ tbt-edit lengths - bulk modify lengths
  • $ tbt-edit stats - summarize stats
  • $ tbt-edit show - output each city with its connections, lengths, etc
  • $ tbt-edit point del pt
    • -f delete even if there are connections
@ctengel ctengel added this to the Static map milestone May 16, 2022
@ctengel
Copy link
Owner Author

ctengel commented May 19, 2022

Need to move #10 stuff into this CLI.

@ctengel ctengel self-assigned this May 19, 2022
@ctengel
Copy link
Owner Author

ctengel commented May 21, 2022

  • click seems too bulky!
  • argparse could be an option
  • docopt maybe
  • also see google fire
  • invoke? probably not

lets just start with argparse unless it drives us nots

other question

@ctengel
Copy link
Owner Author

ctengel commented May 21, 2022

@ctengel
Copy link
Owner Author

ctengel commented May 21, 2022

ctengel added a commit that referenced this issue May 21, 2022
Redid basic csv2json.py as tbt-edit import
Sort of a better version of #10
Prep for #11
ctengel added a commit that referenced this issue May 22, 2022
Part of #11
Some additions/fixes with reading/writing JSON
Added base paradigm of read/mod/write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant