Skip to content

Commit

Permalink
update: Choam.run -> Choam.script // choam download info script 'choa…
Browse files Browse the repository at this point in the history
…m run downloads'
  • Loading branch information
cowboycodr committed Feb 23, 2022
1 parent 101b574 commit 5afd784
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Choam.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "Choam"
version = "0.1.25"
version = "1.0.1"
description = "Python project scaffolder/manager"
repo = "https://github.com/cowboycodr/choam"

Expand All @@ -23,6 +23,7 @@ findimports = "*"
black = "*"
requests = "*"
pylint = "*"
rich = "*"

[script.install-reqs]
perspective = "."
Expand All @@ -45,3 +46,9 @@ description = "Lint Project files with PyLint"
requires = [ "pylint",]
perspective = "."
command = "${PYTHON} -m pylint ${PROJECT}"

[script.downloads]
description = "Get choam downloads // python must be on path"
perspective = ".choam${SEP}scripts${SEP}downloads"
requires = [ "rich",]
command = "${PYTHON} get_downloads.py"
3 changes: 2 additions & 1 deletion choam/choam.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,15 @@ def _log_run_script(
elif perspective:
self._log(perspective_value)

def run(
def script(
self,
path_or_script: str = "",
is_file: Optional[bool] = None,
description: Optional[bool] = None,
command: Optional[bool] = None,
perspective: Optional[bool] = None,
enable_script_variables: Optional[bool] = True,
download: Optional[bool] = None,
*args
):
"""
Expand Down

0 comments on commit 5afd784

Please sign in to comment.