diff options
| author | Bobby <[email protected]> | 2022-11-06 01:19:46 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-06 01:19:46 -0400 |
| commit | 106892b2952f95258fc777cf1afc23fd145232e5 (patch) | |
| tree | 4a9a49b92e06cb57c5db6b5f3e6947c30fe98c1b | |
| parent | ffd0ec06c9176c38962b1841ef2d1c3d5a806922 (diff) | |
| download | texty-106892b2952f95258fc777cf1afc23fd145232e5.tar.xz texty-106892b2952f95258fc777cf1afc23fd145232e5.zip | |
feat: support for project run, list and sort imports
| -rw-r--r-- | setup.py | 27 | ||||
| -rw-r--r-- | texty.prefs | 2 |
2 files changed, 28 insertions, 1 deletions
@@ -153,5 +153,32 @@ def configure(): cli.add_command(configure) [email protected](help="Run the project.") +def run(): + logger.info("Running project...") + os.system("python3 src/texty.py") + + +cli.add_command(run) + + [email protected](help="Start Linter.") +def lint(): + logger.info("Starting Linter...") + os.system("python3 -m black .") + + +cli.add_command(lint) + + [email protected](help="Start Sorter.") +def sort(): + logger.info("Starting Sorter...") + os.system("python3 -m isort .") + + +cli.add_command(sort) + + if __name__ == "__main__": cli() diff --git a/texty.prefs b/texty.prefs index cbac23a..6ff3b85 100644 --- a/texty.prefs +++ b/texty.prefs @@ -1 +1 @@ -{"width": 1032, "height": 790, "x_pos": 391, "y_pos": 124}
\ No newline at end of file +{"width": 1032, "height": 790, "x_pos": 277, "y_pos": 113}
\ No newline at end of file |
