Initial commit
This commit is contained in:
3
src/neoecu/__init__.py
Normal file
3
src/neoecu/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
24
src/neoecu/cli.py
Normal file
24
src/neoecu/cli.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import argparse
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(prog="neoecu")
|
||||
|
||||
subparsers = parser.add_subparsers(dest="command")
|
||||
|
||||
subparsers.add_parser("build")
|
||||
subparsers.add_parser("flash")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.command == "build":
|
||||
from .commands.build import run
|
||||
run()
|
||||
elif args.command == "flash":
|
||||
from .commands.flash import run
|
||||
run()
|
||||
else:
|
||||
parser.print_help()
|
||||
3
src/neoecu/commands/__init__.py
Normal file
3
src/neoecu/commands/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
5
src/neoecu/commands/build.py
Normal file
5
src/neoecu/commands/build.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
def run():
|
||||
print("Building NeoECU...")
|
||||
5
src/neoecu/commands/flash.py
Normal file
5
src/neoecu/commands/flash.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
# Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
def run():
|
||||
print("Flashing NeoECU...")
|
||||
Reference in New Issue
Block a user