public function get($_, $assoc_args)
    {
        $this->init_args(func_get_args());
        list($key) = $_;

        $env = $this->get_env_for_read_or_fail();

        if (is_null($value = $env->get($key))) {
            WP_CLI::error("Key '$key' not found.");
        }

        WP_CLI::line($value);
    }
public function get($_, $assoc_args)
    {
        $this->init_args(func_get_args());
        list($key) = $_;

        $env = $this->get_env_for_read_or_fail();

        if (is_null($value = $env->get($key))) {
            WP_CLI::error("Key '$key' not found.");
        }

        WP_CLI::line($value);
    }
public function get ( $ _ , $ assoc_args ) { $ this -> init_args ( func_get_args ( ) ) ; list ( $ key ) = $ _ ; $ env = $ this -> get_env_for_read_or_fail ( ) ; if ( is_null ( $ value = $ env -> get ( $ key ) ) ) { WP_CLI :: error ( "Key '$key' not found." ) ; } WP_CLI :: line ( $ value ) ; }
Get the value for a given key from the environment file

<key>
: The variable name to retrieve the value for.

[--file=<path-to-dotenv>]
: Path to the environment file.  Default: '.env'

@when     before_wp_load

@param $_
@param $assoc_args
Get the value for a given key from the environment file