Skip to content

Commit

Permalink
[ci skip] Auto-update dependencies and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitsamaddar authored and github-actions[bot] committed Dec 10, 2024
1 parent 0bdd88e commit ba25ebd
Show file tree
Hide file tree
Showing 3,893 changed files with 1,485,697 additions and 1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "My Wordpress Composer Starter Template for quick-starting Wordpress projects",
"type": "wordpress-project",
"license": "GPL-3.0-or-later",
"version": "2024.12.5",
"version": "2024.12.6",
"authors": [
{
"name": "Ankit Samaddar",
Expand Down
15 changes: 15 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.feature]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
vendor
composer.lock
build/logs/
/.phpunit.result.cache
28 changes: 28 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: php

services:
- mysql

php:
- 8.0
- 7.4
- 5.6

install: composer install

before_script:
- composer validate --strict
- mkdir -p build/logs
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot

script: composer test

cache:
directories:
- vendor

notifications:
email:
on_success: never
on_failure: change
27 changes: 27 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

## v2.0.0 (2018-05-21)
- Drop support for PHP 5.5
- Remove dependency on beloved `tightenco/collect` library
- Package now has zero dependencies (other than WP-CLI)

## v1.0.2 (2016-08-30)
- Fixed a regression when installed with `tightenco/collect` 5.3 and up

## v1.0.1 (2016-08-15)
- Fixed a regression where commented-out variables were showing up in `list`

## v1.0.0 (2016-08-06)
- Almost complete rewrite
- All sub-commands covered by functional tests
- Added ability to specify the wrapping quote type when setting a new definition with `set`
- Added ability to filter results by keys matching one or more glob patterns with `list`
- Enhanced `salts generate` to automatically detect placeholder values and update without `--force` or `regenerate`

## v0.2 (2016-05-02)
- Require PHP 5.5+
- Added initial tests
- Add `--force` option for `init` sub-command

## v0.1 (2015-08-04)
- Initial Release!
20 changes: 20 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License
Copyright (c) 2015 Evan Mattson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
99 changes: 99 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# WP-CLI Dotenv Command

[![Travis Build](https://img.shields.io/travis/aaemnnosttv/wp-cli-dotenv-command/master.svg)](https://travis-ci.org/aaemnnosttv/wp-cli-dotenv-command)
[![Packagist](https://img.shields.io/packagist/v/aaemnnosttv/wp-cli-dotenv-command.svg)](https://packagist.org/packages/aaemnnosttv/wp-cli-dotenv-command)

```
NAME
wp dotenv
DESCRIPTION
Manage a .env file
SYNOPSIS
wp dotenv <command>
SUBCOMMANDS
delete Delete a definition from the environment file
get Get the value for a given key from the environment file
init Initialize the environment file
list List the defined variables from the environment file
salts Manage WordPress salts in .env format
set Set a value in the environment file for a given key.
```

> All `dotenv` commands accept a `--file=<path>` parameter to specify the location of the environment file.
Defaults to `.env`.
If used, this parameter can be an absolute or relative path to the environment file, but which must include the file name (it does not have to be `.env`).

## `init`
Initializes a new environment file.

By default, this command will only create the environment file if it does not already exist, but it can do much more.

#### `--template=<file>`
You may optionally initialize the environment file using another file as a template (eg: `.env.example`, a common convention).
Run `wp dotenv init --template=.env.example` to use that file as the basis for the new environment file.

By default, the new file will be a copy of the template, but you may also set new values on the fly interactively!
Passing the `--interactive` flag with the same command will prompt for each defined variable in the template. You may specify a new value to use, or simply leave it blank to keep the template-defined value. Any other lines/comments from the template are preserved.

#### `--with-salts`
Initialize the new environment file with fresh salts provided by the wordpress.org salt generator service.
Any existing keys by the same name will not be overwritten. [See `salts`](#salts).

#### `--force`
Overwrites an existing environment file, if it exists.

## `list [<pattern>...]`
Prints out all of the key/value pairs as defined in the environment file.

You may also optionally limit the output to specific keys, or even keys that match simple patterns using glob pattern syntax.
Eg: `wp dotenv list DB_* *AWS*` would produce a list with the following hypotheical keys:
```
DB_NAME=...
DB_PASS=...
S3_AWS_ID=...
S3_AWS_SECRET=...
```

The `list` command supports all of the same options for `--format=<out>` you've known to grow and love (`table`,`json`,`csv`,..etc). Default: `table`.

## `get <key>`
Get the value of a defined key from the environment file.

## `set <key> <value>`
Set the value of a key in the environment file.

By default the value that is set is not quoted in the file. If you need your value to be quoted a certain way, you may optionally pass a flag for the preferred style of quote you want: `--quote-single` or `--quote-double`.

## `delete <key>...`
Remove one or more definitions for the given keys from the environment file.

## `salts`

#### `generate`
Adds variable definitions to the environment file with fresh salts provided by the [wordpress.org salt generator service](https://api.wordpress.org/secret-key/1.1/salt/).

By default, any existing keys by the same name will not be overwritten. However, if all of the defined salts in the environment file have the same value, then it is assumed that they are placeholders and will be updated. It is also possible to force regenerate them using `--force`, or simply use the `regenerate` command (see below).

#### `regenerate`
Same as `generate`, but will update all keys for salts with new values.

# Installation

#### Recommended

As of WP-CLI v0.23, you may install the dotenv command using the new `package` command:
```
wp package install aaemnnosttv/wp-cli-dotenv-command:^2.0
```

For installation with prior versions of WP-CLI, [see the wiki](https://github.com/aaemnnosttv/wp-cli-dotenv-command/wiki).


That's it! Now you should see the `dotenv` command as an option when you run `wp` from any directory.
7 changes: 7 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
default:
suites:
default:
contexts:
- WP_CLI_Dotenv\Tests\Context\FeatureContext
paths:
- features
10 changes: 10 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

if (defined('WP_CLI') && class_exists('WP_CLI', false)) {
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}

WP_CLI::add_command('dotenv', WP_CLI_Dotenv\WP_CLI\DotenvCommand::class);
WP_CLI::add_command('dotenv salts', WP_CLI_Dotenv\WP_CLI\SaltsCommand::class);
}
45 changes: 45 additions & 0 deletions content/vendor/aaemnnosttv/wp-cli-dotenv-command/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "aaemnnosttv/wp-cli-dotenv-command",
"description": "Dotenv commands for WP-CLI",
"type": "wp-cli-package",
"homepage": "https://aaemnnost.tv/wp-cli-commands/dotenv/",
"support": {
"issues": "https://github.com/aaemnnosttv/wp-cli-dotenv-command/issues"
},
"license": "MIT",
"authors": [
{
"name": "Evan Mattson",
"email": "me@aaemnnost.tv",
"homepage": "https://aaemnnost.tv"
}
],
"scripts": {
"test": [
"phpunit",
"behat"
],
"phpunit": "phpunit",
"behat": "behat"
},
"require": {
"php": "^5.6 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^5 || ^6 || ^7 || ^8 || ^9",
"wp-cli/wp-cli-tests": "^3.0"
},
"autoload": {
"psr-4": {"WP_CLI_Dotenv\\": "src/"},
"files": ["command.php"]
},
"autoload-dev": {
"classmap": ["tests/Fixtures.php"],
"psr-4": {
"WP_CLI_Dotenv\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Feature: Test 'dotenv delete' sub-command.

Scenario: It can delete a defined var from the file by the key
Given an empty directory
And a .env file:
"""
GREETING = Hello World
"""
When I run `wp dotenv delete GREETING`
Then STDOUT should be:
"""
Success: Removed 'GREETING'
"""

Scenario: It can delete all vars listed by key
Given an empty directory
And a .env file:
"""
ONE=uno
TWO=dos
THREE=tres
"""
When I run `wp dotenv delete ONE TWO THREE`
Then STDOUT should be:
"""
Success: Removed 'ONE'
Success: Removed 'TWO'
Success: Removed 'THREE'
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Feature: Test 'dotenv get' sub-command.

Scenario: It errors when trying to get a value when no env file exists
Given an empty directory
When I try `wp dotenv get SOMETHING`
Then STDOUT should be empty
Then STDERR should contain:
"""
File does not exist
"""

Scenario: It errors when trying to get non-existent keys
Given an empty directory
And a .env file
When I try `wp dotenv get ASDFXYZ`
Then STDERR should contain:
"""
'ASDFXYZ' not found
"""

Scenario: It returns the value for the key
Given an empty directory
And a .env file:
"""
GREETING = Hi there
"""
When I run `wp dotenv get GREETING`
Then STDOUT should be:
"""
Hi there
"""

Scenario: It returns values without any wrapping quotes, if any
Given an empty directory
And a .env file:
"""
SINGLEQUOTED='single-quoted value'
DOUBLEQUOTED="double-quoted value"
"""
When I run `wp dotenv get SINGLEQUOTED`
Then STDOUT should be:
"""
single-quoted value
"""
When I run `wp dotenv get DOUBLEQUOTED`
Then STDOUT should be:
"""
double-quoted value
"""
Loading

0 comments on commit ba25ebd

Please sign in to comment.