Skip to content

Commit

Permalink
refactor: add src layer
Browse files Browse the repository at this point in the history
  • Loading branch information
necusjz committed Nov 19, 2023
1 parent aa18b6f commit 5ab8011
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Empty file added src/splatbot/__init__.py
Empty file.
30 changes: 30 additions & 0 deletions src/splatbot/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env python
import argparse


def macro(args):
pass


def start(args):
pass


def main():
parser = argparse.ArgumentParser("")
subparser = parser.add_subparsers(title="Commands", dest="command")

macro_parser = subparser.add_parser("macro", help="Generate macros representing the actual drawing process.")
macro_parser.add_argument("-i", help="Path to a 320x120 horizontal image to serve as plaza post.")
macro_parser.set_defaults(func=macro)

start_parser = subparser.add_parser("start", help="Start drawing and display the current progress.")
start_parser.add_argument("-i", help="Path to macros that will run on the Pro Controller.")
start_parser.set_defaults(func=start)

args = parser.parse_args()
args.func(args)


if __name__ == "__main__":
main()

0 comments on commit 5ab8011

Please sign in to comment.