Skip to content

Commit

Permalink
Command line init
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagusiak committed Dec 4, 2023
1 parent a93f0e1 commit 4b61031
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion alphaconf/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@

from . import set_application
from .internal.application import Application
from .internal.arg_parser import ArgumentError, ExitApplication
from .internal.arg_parser import Action, ArgumentError, ExitApplication

T = TypeVar('T')
__all__ = ["run"]


class CommandAction(Action):
pass # TODO just read a function name, parse rest with this one


class CliApplication(Application):
pass


def run(
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ toml = ["toml"]
[project.urls]
Homepage = "https://github.com/kmagusiak/alphaconf"

[project.scripts]
alphaconf = "alphaconf.cli:run"

[[project.authors]]
name = "Krzysztof Magusiak"
email = "chrmag@poczta.onet.pl"
Expand Down

0 comments on commit 4b61031

Please sign in to comment.