Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: support yml for blueprints #313

Open
lgersman opened this issue Jun 15, 2024 · 0 comments
Open

wp-now: support yml for blueprints #313

lgersman opened this issue Jun 15, 2024 · 0 comments

Comments

@lgersman
Copy link

Providing (additional) yml support for blueprint definition would greatly improve the usability of blueprints.

yml supports:

  • comments for explaining why a blueprint step is required (or what it does) and what it does

  • multiline values (for writeFile)

{
  "step": "writeFile",
  "path": "/wordpress/wp-content/mu-plugins/rewrite.php",
  "data": "<?php /* Use pretty permalinks */ add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } 
  );"
}

This multiline data could be written in yml in true multiline fashion which is much more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant