Skip to content

Conversation

@jmdodd
Copy link
Contributor

@jmdodd jmdodd commented Oct 13, 2021

This is a potential solution for #76.

The default behavior is to include all before_posts sections. The --include_once parameter allows certain optional sections to be included only in the first file of a multifile export.

danielbachhuber and others added 30 commits February 24, 2017 10:37
Abstract `wp cron *` to separate wp-cli/cron-command package
Process `--activate` flag on `language install` even if already installed
Actually return `false` when `$widget` is empty
Adapt license header so GitHub picks it up
```
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing mustangostang/spyc (0.6.1)
  - Installing mustangostang/spyc (0.6.2)
    Downloading: 100%

  - Removing phpunit/php-timer (1.0.8)
  - Installing phpunit/php-timer (1.0.9)
    Downloading: 100%

Writing lock file
Generating autoload files
```
Before:
```
require:
  - file1.php  - file2.php
```

After:
```
require:
  - file1.php
  - file2.php
```
Update Composer dependencies (2/27/2017)
Add missing line break in FeatureContext.php
Introduce `WP_CLI\Utils\basename()` for locale-independent basename()
Abstract `wp import` to a separate wp-cli/import-command package
Per the function comment "Environment values permit specific binaries to be indicated". Currently not possible as PHP_BINARY ***always*** present as defined constant (which can NEVER be overridden unless one uses runkit_extension; dated, not supported)
Like with other commands, info, update, run command, utilize WP_CLI::get_php_binary() in lieu of fixed PHP_BINARY constant.
Fix allowing env. values to permit specific binary
Update tests for WordPress 4.7.3
Abstract `wp db *` to wp-cli/db-command
This prevents adding Composer dependencies with known security vulnerabilities.

Resolves #3842
@jmdodd jmdodd requested a review from a team as a code owner October 13, 2021 19:06
@schlessera
Copy link
Member

Hi @jmdodd,
This PR looks great already, thank you for that!
To merge the code, we will need to add Behat test cases for it, though. Are you up for adding these needed test cases?

@jmdodd
Copy link
Contributor Author

jmdodd commented Jul 19, 2022

I'll learn how. :)

@danielbachhuber
Copy link
Member

Proceeding with wp-cli/wp-cli#5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/d474a1506fdc61d157184049890f2cbd in case this PR is auto-closed or broken in some way.

danielbachhuber added a commit that referenced this pull request Dec 5, 2022
danielbachhuber added a commit that referenced this pull request Dec 8, 2022
…ti-file exports (#100)

* Restore @jmdodd code from #91

* Add a test case for `--include_once=<section>`

* Move options to OPTIONS instead of FILTERS

* Add a couple more test cases for full coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.