basic runner format; write a MAIN function
This commit is contained in:
		| @@ -1,9 +1,7 @@ | ||||
| #!/bin/zsh | ||||
| DEPENDENCIES+=() | ||||
| REQUIRED_ENV+=() | ||||
|  | ||||
| use scwrypts/meta | ||||
|  | ||||
| CHECK_ENVIRONMENT | ||||
| ##################################################################### | ||||
| SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --only-build $@ | ||||
|  | ||||
| MAIN() { | ||||
| 	SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --only-build $@ | ||||
| } | ||||
|   | ||||
| @@ -1,9 +1,7 @@ | ||||
| #!/bin/zsh | ||||
| DEPENDENCIES+=() | ||||
| REQUIRED_ENV+=() | ||||
|  | ||||
| use scwrypts/meta | ||||
|  | ||||
| CHECK_ENVIRONMENT | ||||
| ##################################################################### | ||||
| SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --only-pull $@ | ||||
|  | ||||
| MAIN() { | ||||
| 	SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --only-pull $@ | ||||
| } | ||||
|   | ||||
| @@ -1,13 +1,8 @@ | ||||
| #!/bin/zsh | ||||
| DEPENDENCIES+=() | ||||
| REQUIRED_ENV+=() | ||||
|  | ||||
| use system/packages/git | ||||
|  | ||||
| CHECK_ENVIRONMENT | ||||
| ##################################################################### | ||||
|  | ||||
| INSTALL() { | ||||
| MAIN() { | ||||
| 	local USAGE=" | ||||
| 		usage: [...options...] | ||||
|  | ||||
| @@ -86,6 +81,3 @@ INSTALL() { | ||||
| 	[[ $SKIP_BUILD -eq 1 ]] && return 0 | ||||
| 	BUILD | ||||
| } | ||||
|  | ||||
| ##################################################################### | ||||
| INSTALL $@ | ||||
|   | ||||
| @@ -1,9 +1,7 @@ | ||||
| #!/bin/zsh | ||||
| DEPENDENCIES+=() | ||||
| REQUIRED_ENV+=() | ||||
|  | ||||
| use scwrypts/meta | ||||
|  | ||||
| CHECK_ENVIRONMENT | ||||
| ##################################################################### | ||||
| SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --update $@ | ||||
|  | ||||
| MAIN() { | ||||
| 	SCWRYPTS__RUN --name system/packages/install --group scwrypts --type zsh -- --update $@ | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user