Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 21, 2025

Implementation Plan

  • Analyze existing scripts (wp-push.sh and wp-pull.sh) to understand current functionality
  • Add interactive prompts for SOURCE (LOCAL) and REMOTE configuration
    • Prompt for local user, path, and webroot
    • Prompt for remote user, path, and webroot
    • Add validation for paths
  • Add prompt to ask if database rewrites should be done
    • Option to skip search-replace entirely (--no-search-replace)
    • Option to skip database operations entirely (--files-only)
  • Verify all bash arguments/flags are properly documented
    • Already implemented: --db-only, --files-only, --no-db-import, --no-search-replace, --exclude, --all-tables-with-prefix, --help, --verbose, --tidy-up
    • Ensure help text is comprehensive
  • Update README.md with new interactive mode documentation
  • Test interactive workflow for both wp-pull.sh and wp-push.sh
  • Ensure colorization and UX are user-friendly (already implemented but verify)
Original prompt

Update this script so that it has a complete user-friendly workflow, where the required variables can all be setup via a number of user prompts.

the user will need to be prompted for the SOURCE and REMOTE details and then be asked if db rewrites need to be done, or whether this database should be copied to the desitnation and then not modified at all.

also setup bash arguments that can be passed to the script to modify all the "Options flags".

also add a README file and help function, using -h or --help.

also privide a new option -e | --exclude, to pass in paths to exclude, to the $excludes variable

also add helpful colorisation and make the UX good for the user running the script


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

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

Successfully merging this pull request may close these issues.

2 participants