├── .github └── workflows │ ├── build.yml │ ├── ci.yml │ └── unit.yml ├── .gitignore ├── .php_cs ├── .psh.xml ├── .travis └── github_deploy_key.enc ├── LICENSE ├── README.md ├── actions ├── build.sh ├── ci.sh ├── clear.sh ├── composer-update.sh └── unit.sh ├── box.json ├── composer.json ├── composer.lock ├── deploy.sh ├── docker ├── 72 │ ├── Dockerfile │ └── php-config.ini ├── 73 │ ├── Dockerfile │ └── php-config.ini ├── 74 │ ├── Dockerfile │ └── php-config.ini └── 80 │ ├── Dockerfile │ └── php-config.ini ├── infection.json.dist ├── phpunit.xml.dist ├── psalm.xml ├── psh ├── resource ├── config.xsd └── version.php ├── run.sh ├── scripts └── convert-yaml-to-xml ├── src ├── Application │ ├── Application.php │ ├── ApplicationConfigLogger.php │ ├── ApplicationFactory.php │ ├── ApplicationOptions.php │ ├── ClimateLogger.php │ ├── ExitSignal.php │ ├── InvalidParameter.php │ ├── ParameterParser.php │ └── RuntimeParameters.php ├── Config │ ├── Config.php │ ├── ConfigBuilder.php │ ├── ConfigEnvironment.php │ ├── ConfigFactory.php │ ├── ConfigFileFinder.php │ ├── ConfigFileLoader.php │ ├── ConfigFileLoaderFileSystemHandlers.php │ ├── ConfigLogger.php │ ├── ConfigMerger.php │ ├── DotenvFile.php │ ├── EnvironmentResolver.php │ ├── InvalidReferencedPath.php │ ├── NoConfigFileFound.php │ ├── ProcessValueProvider.php │ ├── RequiredValue.php │ ├── ScriptsPath.php │ ├── SimpleValueProvider.php │ ├── Template.php │ ├── TemplateWriteNotSuccessful.php │ ├── ValueProvider.php │ ├── XmlConfigFileLoader.php │ └── YamlConfigFileLoader.php ├── Listing │ ├── DescriptionReader.php │ ├── Script.php │ ├── ScriptFinder.php │ ├── ScriptNotFound.php │ └── ScriptPathNotValid.php ├── PshErrorMessage.php └── ScriptRuntime │ ├── BashCommand.php │ ├── Command.php │ ├── DeferredProcessCommand.php │ ├── Execution │ ├── DeferredProcess.php │ ├── ExecutionError.php │ ├── LogMessage.php │ ├── Logger.php │ ├── MissingRequiredParameter.php │ ├── ProcessEnvironment.php │ ├── ProcessExecutor.php │ ├── TemplateEngine.php │ └── TemplateNotValid.php │ ├── ParsableCommand.php │ ├── ProcessCommand.php │ ├── ScriptLoader │ ├── BashScriptParser.php │ ├── CommandBuilder.php │ ├── PshScriptParser.php │ ├── ScriptLoader.php │ ├── ScriptNotSupportedByParser.php │ └── ScriptParser.php │ ├── SynchronusProcessCommand.php │ ├── TemplateCommand.php │ └── WaitCommand.php ├── tests ├── .psh.xml ├── Acceptance │ ├── ApplicationTest.php │ ├── MinApplicationTest.php │ ├── MockWriter.php │ ├── _app-empty │ │ ├── .psh.xml │ │ └── my │ │ │ └── sh │ │ │ └── scripts │ │ │ └── .gitkeep │ ├── _app │ │ ├── .env │ │ ├── .psh.xml │ │ ├── envpath │ │ │ ├── .hidden.sh │ │ │ ├── env.sh │ │ │ └── env2.sh │ │ ├── envpath2 │ │ │ ├── bash.sh │ │ │ ├── deferred.sh │ │ │ └── env2.sh │ │ ├── glib │ │ ├── glob │ │ │ ├── .psh.xml │ │ │ ├── .psh.xml.override │ │ │ └── actions │ │ │ │ └── glob.sh │ │ ├── scripts │ │ │ ├── error.sh │ │ │ ├── simple.sh │ │ │ └── very-long-script-name-to-test-padding-works-as-expected.sh │ │ └── templates │ │ │ └── test.tpl │ ├── _app_invalid_template │ │ ├── .psh.xml │ │ ├── scripts │ │ │ └── simple.sh │ │ └── templates │ │ │ └── test.tpl │ ├── _app_missing_requirement │ │ ├── .psh.xml │ │ ├── scripts │ │ │ └── simple.sh │ │ └── templates │ │ │ └── test.tpl │ ├── _minApp │ │ ├── .psh.xml │ │ └── my │ │ │ └── sh │ │ │ └── scripts │ │ │ └── test.sh │ └── _override_app │ │ ├── .psh.xml │ │ ├── .psh.xml.override │ │ ├── actions │ │ └── override-app.sh │ │ └── foo │ │ ├── .psh.xml │ │ └── actions │ │ └── glob.sh ├── BlackholeLogger.php ├── Integration │ ├── Config │ │ ├── ConfigFileFinderTest.php │ │ └── _configFileFinderFixtures │ │ │ ├── dist │ │ │ ├── .psh.xml │ │ │ ├── .psh.xml.dist │ │ │ └── sub │ │ │ │ └── sub2 │ │ │ │ └── sub3 │ │ │ │ └── .gitkeep │ │ │ ├── override │ │ │ ├── .psh.xml │ │ │ └── .psh.xml.override │ │ │ ├── override_and_dist │ │ │ ├── .psh.xml.dist │ │ │ └── .psh.xml.override │ │ │ └── override_yml_and_dist_xml │ │ │ ├── .psh.xml.dist │ │ │ └── .psh.yaml.override │ ├── Listing │ │ ├── ScriptFinderTest.php │ │ ├── _scripts │ │ │ ├── bar.psh │ │ │ ├── description.sh │ │ │ ├── foo.sh │ │ │ └── test.sh │ │ └── _scripts_with_misc_stuff │ │ │ ├── .hidden.sh │ │ │ ├── foo.psh │ │ │ ├── test.sh │ │ │ ├── test.txt │ │ │ └── testing.sh │ └── ScriptRuntime │ │ ├── ProcessExecutorTest.php │ │ ├── TemplateTest.php │ │ ├── _non_writable │ │ └── bash.sh │ │ ├── _scripts │ │ ├── bash-non-executable.sh │ │ ├── bash.sh │ │ ├── bash_include.sh │ │ ├── better_bash.sh │ │ ├── deferred.sh │ │ ├── deferred_with_deferred_error.sh │ │ ├── deferred_with_sync_error.sh │ │ ├── environment.sh │ │ ├── root-dir.sh │ │ └── template.sh │ │ └── _test_read.tpl ├── Unit │ ├── Application │ │ ├── ApplicationFactoryTest.php │ │ ├── ClimateLoggerTest.php │ │ ├── ParameterParserTest.php │ │ ├── _fixtures │ │ │ └── config │ │ │ │ └── .psh.xml │ │ └── _fixtures_with_invalid_config_files │ │ │ └── config │ │ │ └── .psh.not-supported │ ├── Config │ │ ├── .baz │ │ ├── .fiz │ │ ├── ConfigFileFinderTest.php │ │ ├── ConfigMergerTest.php │ │ ├── XmlConfigFileLoaderTest.php │ │ ├── YamlConfigFileLoaderTest.php │ │ ├── _bar │ │ │ └── .gitkeep │ │ ├── _foo │ │ │ ├── .buz │ │ │ ├── .fiz │ │ │ └── .gitkeep │ │ ├── _test.txt │ │ └── _the_template.tpl │ ├── Listing │ │ ├── DescriptionReaderTest.php │ │ ├── ScriptFinderTest.php │ │ └── _fixtures │ │ │ ├── description.sh │ │ │ ├── description_in_non_comment_line.sh │ │ │ ├── no_description.sh │ │ │ └── remove_whitespace.sh │ └── ScriptRuntime │ │ ├── ProcessEnvironmentTest.php │ │ ├── PshScriptParserTest.php │ │ ├── ScriptLoaderTest.php │ │ ├── TemplateEngineTest.php │ │ ├── _dotenv │ │ └── simple.env │ │ └── _scripts │ │ ├── .cmd1.sh │ │ ├── .cmd2.sh │ │ ├── concatenate.sh │ │ ├── empty.txt │ │ ├── exception_action.sh │ │ ├── exception_include.sh │ │ ├── ignore_error.sh │ │ ├── include_cmd_scripts.sh │ │ ├── local_action.sh │ │ ├── local_include.sh │ │ ├── simple.sh │ │ ├── template.sh │ │ └── tty.sh ├── bootstrap.php └── test-actions │ ├── test-env.sh │ └── test.sh └── vendor-bin ├── box ├── composer.json └── composer.lock ├── infection ├── composer.json └── composer.lock └── psalm ├── composer.json └── composer.lock /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/unit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.github/workflows/unit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.gitignore -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.php_cs -------------------------------------------------------------------------------- /.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.psh.xml -------------------------------------------------------------------------------- /.travis/github_deploy_key.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/.travis/github_deploy_key.enc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/README.md -------------------------------------------------------------------------------- /actions/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/actions/build.sh -------------------------------------------------------------------------------- /actions/ci.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/actions/ci.sh -------------------------------------------------------------------------------- /actions/clear.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/actions/clear.sh -------------------------------------------------------------------------------- /actions/composer-update.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /actions/unit.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/actions/unit.sh -------------------------------------------------------------------------------- /box.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/box.json -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/composer.lock -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/deploy.sh -------------------------------------------------------------------------------- /docker/72/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/docker/72/Dockerfile -------------------------------------------------------------------------------- /docker/72/php-config.ini: -------------------------------------------------------------------------------- 1 | phar.readonly=0 2 | 3 | max_execution_time=0 4 | memory_limit=-1 -------------------------------------------------------------------------------- /docker/73/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/docker/73/Dockerfile -------------------------------------------------------------------------------- /docker/73/php-config.ini: -------------------------------------------------------------------------------- 1 | phar.readonly=0 2 | 3 | max_execution_time=0 4 | memory_limit=-1 -------------------------------------------------------------------------------- /docker/74/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/docker/74/Dockerfile -------------------------------------------------------------------------------- /docker/74/php-config.ini: -------------------------------------------------------------------------------- 1 | phar.readonly=0 2 | 3 | max_execution_time=0 4 | memory_limit=-1 -------------------------------------------------------------------------------- /docker/80/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/docker/80/Dockerfile -------------------------------------------------------------------------------- /docker/80/php-config.ini: -------------------------------------------------------------------------------- 1 | phar.readonly=0 2 | 3 | max_execution_time=0 4 | memory_limit=-1 -------------------------------------------------------------------------------- /infection.json.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/infection.json.dist -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/psalm.xml -------------------------------------------------------------------------------- /psh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/psh -------------------------------------------------------------------------------- /resource/config.xsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/resource/config.xsd -------------------------------------------------------------------------------- /resource/version.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | ls -ahl -------------------------------------------------------------------------------- /tests/Acceptance/_app/envpath2/deferred.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app/envpath2/deferred.sh -------------------------------------------------------------------------------- /tests/Acceptance/_app/envpath2/env2.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | INCLUDE: ../scripts/simple.sh -------------------------------------------------------------------------------- /tests/Acceptance/_app/glib: -------------------------------------------------------------------------------- 1 | test it is ignored as an import -------------------------------------------------------------------------------- /tests/Acceptance/_app/glob/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app/glob/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_app/glob/.psh.xml.override: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app/glob/.psh.xml.override -------------------------------------------------------------------------------- /tests/Acceptance/_app/glob/actions/glob.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "glob" -------------------------------------------------------------------------------- /tests/Acceptance/_app/scripts/error.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app/scripts/error.sh -------------------------------------------------------------------------------- /tests/Acceptance/_app/scripts/simple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app/scripts/simple.sh -------------------------------------------------------------------------------- /tests/Acceptance/_app/scripts/very-long-script-name-to-test-padding-works-as-expected.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # DESCRIPTION: desc 3 | 4 | echo "Works" -------------------------------------------------------------------------------- /tests/Acceptance/_app/templates/test.tpl: -------------------------------------------------------------------------------- 1 | __ENV__ -------------------------------------------------------------------------------- /tests/Acceptance/_app_invalid_template/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app_invalid_template/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_app_invalid_template/scripts/simple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app_invalid_template/scripts/simple.sh -------------------------------------------------------------------------------- /tests/Acceptance/_app_invalid_template/templates/test.tpl: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /tests/Acceptance/_app_missing_requirement/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_app_missing_requirement/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_app_missing_requirement/scripts/simple.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "__FOO__" -------------------------------------------------------------------------------- /tests/Acceptance/_app_missing_requirement/templates/test.tpl: -------------------------------------------------------------------------------- 1 | test __BAR__ -------------------------------------------------------------------------------- /tests/Acceptance/_minApp/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_minApp/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_minApp/my/sh/scripts/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ln -s 4 | -------------------------------------------------------------------------------- /tests/Acceptance/_override_app/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_override_app/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_override_app/.psh.xml.override: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_override_app/.psh.xml.override -------------------------------------------------------------------------------- /tests/Acceptance/_override_app/actions/override-app.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo __EXTERNAL_PARAM__ -------------------------------------------------------------------------------- /tests/Acceptance/_override_app/foo/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Acceptance/_override_app/foo/.psh.xml -------------------------------------------------------------------------------- /tests/Acceptance/_override_app/foo/actions/glob.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "glob" -------------------------------------------------------------------------------- /tests/BlackholeLogger.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/BlackholeLogger.php -------------------------------------------------------------------------------- /tests/Integration/Config/ConfigFileFinderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/Config/ConfigFileFinderTest.php -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/dist/.psh.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/dist/.psh.xml.dist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/dist/sub/sub2/sub3/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override/.psh.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override/.psh.xml.override: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override_and_dist/.psh.xml.dist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override_and_dist/.psh.xml.override: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override_yml_and_dist_xml/.psh.xml.dist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Config/_configFileFinderFixtures/override_yml_and_dist_xml/.psh.yaml.override: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Listing/ScriptFinderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/Listing/ScriptFinderTest.php -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts/bar.psh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts/description.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #DESCRIPTION: My description -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts/foo.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts_with_misc_stuff/.hidden.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts_with_misc_stuff/foo.psh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts_with_misc_stuff/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts_with_misc_stuff/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Integration/Listing/_scripts_with_misc_stuff/testing.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/ProcessExecutorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/ProcessExecutorTest.php -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/TemplateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/TemplateTest.php -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_non_writable/bash.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | FOO="BAR" 5 | -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/bash-non-executable.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/bash-non-executable.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/bash.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | FOO="BAR" 5 | 6 | echo $PWD$FOO -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/bash_include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/bash_include.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/better_bash.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | set -euo pipefail 5 | 6 | FOO="BAR" 7 | 8 | echo $PWD$FOO -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/deferred.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/deferred.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/deferred_with_deferred_error.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/deferred_with_deferred_error.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/deferred_with_sync_error.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/deferred_with_sync_error.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/environment.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/environment.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/root-dir.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo $PWD -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_scripts/template.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_scripts/template.sh -------------------------------------------------------------------------------- /tests/Integration/ScriptRuntime/_test_read.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Integration/ScriptRuntime/_test_read.tpl -------------------------------------------------------------------------------- /tests/Unit/Application/ApplicationFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Application/ApplicationFactoryTest.php -------------------------------------------------------------------------------- /tests/Unit/Application/ClimateLoggerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Application/ClimateLoggerTest.php -------------------------------------------------------------------------------- /tests/Unit/Application/ParameterParserTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Application/ParameterParserTest.php -------------------------------------------------------------------------------- /tests/Unit/Application/_fixtures/config/.psh.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Application/_fixtures/config/.psh.xml -------------------------------------------------------------------------------- /tests/Unit/Application/_fixtures_with_invalid_config_files/config/.psh.not-supported: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/.baz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/.fiz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/ConfigFileFinderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Config/ConfigFileFinderTest.php -------------------------------------------------------------------------------- /tests/Unit/Config/ConfigMergerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Config/ConfigMergerTest.php -------------------------------------------------------------------------------- /tests/Unit/Config/XmlConfigFileLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Config/XmlConfigFileLoaderTest.php -------------------------------------------------------------------------------- /tests/Unit/Config/YamlConfigFileLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Config/YamlConfigFileLoaderTest.php -------------------------------------------------------------------------------- /tests/Unit/Config/_bar/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/_foo/.buz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/_foo/.fiz: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/_foo/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/Config/_test.txt: -------------------------------------------------------------------------------- 1 | foo -------------------------------------------------------------------------------- /tests/Unit/Config/_the_template.tpl: -------------------------------------------------------------------------------- 1 | A Template -------------------------------------------------------------------------------- /tests/Unit/Listing/DescriptionReaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Listing/DescriptionReaderTest.php -------------------------------------------------------------------------------- /tests/Unit/Listing/ScriptFinderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/Listing/ScriptFinderTest.php -------------------------------------------------------------------------------- /tests/Unit/Listing/_fixtures/description.sh: -------------------------------------------------------------------------------- 1 | #DESCRIPTION: My desc. -------------------------------------------------------------------------------- /tests/Unit/Listing/_fixtures/description_in_non_comment_line.sh: -------------------------------------------------------------------------------- 1 | some line 2 | DESCRIPTION: My desc. -------------------------------------------------------------------------------- /tests/Unit/Listing/_fixtures/no_description.sh: -------------------------------------------------------------------------------- 1 | 2 | some content -------------------------------------------------------------------------------- /tests/Unit/Listing/_fixtures/remove_whitespace.sh: -------------------------------------------------------------------------------- 1 | some line 2 | #DESCRIPTION: My desc. -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/ProcessEnvironmentTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/ProcessEnvironmentTest.php -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/PshScriptParserTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/PshScriptParserTest.php -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/ScriptLoaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/ScriptLoaderTest.php -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/TemplateEngineTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/TemplateEngineTest.php -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_dotenv/simple.env: -------------------------------------------------------------------------------- 1 | FOO=bar -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/.cmd1.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | FOO="BAR" 5 | 6 | echo $PWD$FOO -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/.cmd2.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | 4 | FOO="BAR" 5 | 6 | echo $PWD$FOO -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/concatenate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/concatenate.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/exception_action.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/exception_action.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/exception_include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/exception_include.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/ignore_error.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/ignore_error.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/include_cmd_scripts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/include_cmd_scripts.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/local_action.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/local_action.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/local_include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/local_include.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/simple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/simple.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/template.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shopwareLabs/psh/HEAD/tests/Unit/ScriptRuntime/_scripts/template.sh -------------------------------------------------------------------------------- /tests/Unit/ScriptRuntime/_scripts/tty.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | TTY: ls 4 | -al 5 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |