Skip to content

Add a phapp environment command #27

@fago

Description

@fago

The command prints out the environment variables set after executing the bash command 'environment' from the manifest. It echos the variables that are new; thus for being able to do so it will have to compare the original environment with the modified environment and only print out variables that changed.

USAGE: $(phapp environment) custom-command

If --verbose is passed, it should also print out the executed command - as done by default by the /bin/bash prefix https://github.com/drunomics/phapp-cli/blob/master/src/Task/Exec.php#L68

The optional parameter "--show-command" makes phapp show the command instead of outputting the variables. Thus can be used as following:

eval $(phapp environment --show-command)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions