Skip to content

Profiles #30

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

Merged
merged 6 commits into from
May 8, 2014
Merged

Profiles #30

merged 6 commits into from
May 8, 2014

Conversation

dantleech
Copy link
Member

This PR adds support for connection profiles

Connection profiles are stored in ~/.phpcrsh/profiles and can be created by using the --profile option:

$ phpcrsh --transport=doctrine-dbal --db-name=foo --profile=foo_doctrine

The given connection parameters can then subequently be reused by only specifying the --profile option:

$ phpcrsh --profile=foo_doctrine
// or
$ phpcrsh -pfoo_doctrine

Or running PHPCRSH without any arguments will present a list of available profiles

$ phpcrsh                                                                                                             ◼
No connection parameters, given. Select an existing profile:

  (0) dtlweb
  (1) jr_test

Enter profile number: 1

@dantleech dantleech mentioned this pull request May 6, 2014
dantleech added a commit that referenced this pull request May 8, 2014
@dantleech dantleech merged commit 1ec3e1e into master May 8, 2014
@dantleech dantleech deleted the profiles branch May 8, 2014 06:06
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