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

Retain CLI segments #2571

Merged
merged 2 commits into from
Feb 20, 2020
Merged

Retain CLI segments #2571

merged 2 commits into from
Feb 20, 2020

Conversation

MGatner
Copy link
Member

@MGatner MGatner commented Feb 18, 2020

Description
Currently CLI segments are pushed together with a "/" and run through the router as though it were an actual route. This works most of the time, but fails in cases like #2148 where one of the parameters already contains a "/" (e.g. spark import:file /tmp/files/myfile.csv).

This PR changes the framework to use the actual segments as parameters, instead of the smushed router version. It will probably also do some general CLI cleanup.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@MGatner MGatner changed the title WIP Retain CLI segments Retain CLI segments Feb 18, 2020
@MGatner MGatner requested a review from lonnieezell February 18, 2020 21:13
@lonnieezell lonnieezell merged commit 8492d9f into codeigniter4:develop Feb 20, 2020
@MGatner MGatner deleted the cli-params branch February 20, 2020 11:20
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