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

        $env = $this->get_env_for_write_or_fail();
        $env->set($key, $value, $this->quote());
        $env->save();

        WP_CLI::success("'$key' set.");
    }
public function set($_, $assoc_args)
    {
        $this->init_args(func_get_args());
        list($key, $value) = $_;

        $env = $this->get_env_for_write_or_fail();
        $env->set($key, $value, $this->quote());
        $env->save();

        WP_CLI::success("'$key' set.");
    }
public function set ( $ _ , $ assoc_args ) { $ this -> init_args ( func_get_args ( ) ) ; list ( $ key , $ value ) = $ _ ; $ env = $ this -> get_env_for_write_or_fail ( ) ; $ env -> set ( $ key , $ value , $ this -> quote ( ) ) ; $ env -> save ( ) ; WP_CLI :: success ( "'$key' set." ) ; }
Set a value in the environment file for a given key.
Updates an existing value or creates a new entry.

<key>
: The var key

<value>
: the value to set.

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

[--quote-single]
: Wrap the value with single quotes.

[--quote-double]
: Wrap the value with double quotes.

@when     before_wp_load

@param $_
@param $assoc_args
Set a value in the environment file for a given key . Updates an existing value or creates a new entry .