feat: setup basic CLI structure
This commit is contained in:
parent
51e35a8fee
commit
e7518a3654
1 changed files with 14 additions and 1 deletions
15
src/cli.py
15
src/cli.py
|
@ -1,5 +1,18 @@
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Application is running")
|
parser = argparse.ArgumentParser(
|
||||||
|
prog="eolas-db", description="Eolas database manager."
|
||||||
|
)
|
||||||
|
parser.add_argument("command", choices=["parse"], help="Command to execute")
|
||||||
|
parser.add_argument("--path", help="Path to Zettelkasten directory")
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
print("Welcome to eolas-db")
|
||||||
|
|
||||||
|
if args.command == "parse":
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Reference in a new issue