Skip to content

Add improved splitting utility#66

Closed
bennothommo wants to merge 6 commits intodevelopfrom
wip/improved-split
Closed

Add improved splitting utility#66
bennothommo wants to merge 6 commits intodevelopfrom
wip/improved-split

Conversation

@bennothommo
Copy link
Copy Markdown
Member

@bennothommo bennothommo commented Apr 3, 2021

Adds a much faster and more robust subsplit utility into Winter CMS, and adds a winter:split command to be used by the maintainers to execute a subsplit of the modules into their split repositories.

Usage:

Description:
  Runs a subsplit to publish the Winter CMS modules in their own repositories.

Usage:
  winter:split [options] [--] <token>

Arguments:
  token                                GitHub token for writing to the repositories.

Options:
  -b, --branch[=BRANCH]                Publishes a branch in the subsplit repositories.
  -g, --git[=GIT]                      The path to the "git" binary.
      --remove-branch[=REMOVE-BRANCH]  Removes a branch in the subsplit repositories.
      --remove-tag[=REMOVE-TAG]        Removes a tag in the subsplit repositories.
  -s, --sync                           Fully synchronises branches and tags with the subsplit repositories.
  -a, --tag[=TAG]                      Publishes a tag in the subsplit repositories.
  -w, --work-repo[=WORK-REPO]          Defines the location of the working repository. Defaults to "/storage/temp/split-repo" within the base path.
  -h, --help                           Display this help message
  -q, --quiet                          Do not output any message
  -V, --version                        Display this application version
      --ansi                           Force ANSI output
      --no-ansi                        Disable ANSI output
  -n, --no-interaction                 Do not ask any interactive question
      --env[=ENV]                      The environment the command should run under
  -v|vv|vvv, --verbose                 Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

It should be run as follows:

php artisan winter:split <github token>

and followed by one of the following:

  • -s|--sync: Runs a full sync of all branches from the main repo to the subsplits
  • -b|--branch <branch>: Runs a sync for a single branch
  • -a|--tag <tag>: Runs a sync for a single tag
  • --remove-branch <branch>: Removes a single branch from the subsplits
  • --remove-tag <tag>: Removes a single tag from the subsplits

@bennothommo bennothommo added enhancement PRs that implement a new feature or substantial change Status: In Progress labels Apr 3, 2021
@bennothommo bennothommo added this to the v1.1.3 milestone Apr 3, 2021
@bennothommo bennothommo added maintenance PRs that fix bugs, are translation changes or make only minor changes needs review Issues/PRs that require a review from a maintainer and removed Status: In Progress maintenance PRs that fix bugs, are translation changes or make only minor changes labels Apr 3, 2021
@bennothommo bennothommo marked this pull request as ready for review April 3, 2021 13:45
@bennothommo
Copy link
Copy Markdown
Member Author

Moving work to the https://github.com/wintercms/cli - the maintainers feel this is too "internal" to be used within the CMS itself.

@bennothommo bennothommo closed this Apr 3, 2021
@bennothommo bennothommo removed needs review Issues/PRs that require a review from a maintainer enhancement PRs that implement a new feature or substantial change labels Apr 3, 2021
@bennothommo bennothommo removed this from the v1.1.3 milestone Apr 3, 2021
@bennothommo bennothommo deleted the wip/improved-split branch April 3, 2021 14:36
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.

1 participant