Skip to content

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