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

Adds nickname command for friendly command prompts #61

Closed
wants to merge 1 commit into from

Conversation

mmattozzi
Copy link
Contributor

Adds the nickname command, command line argument, and properties file property to reflect a friendly name in the command prompt and !list command.

0: jdbc:oracle:thin:@localhost:1521:mydb> !nickname devdb
0: devdb> !list
 #0  open     devdb              jdbc:oracle:thin:@localhost:1521:mydb
0: devdb>

OR invoke at command line:

$ sqlline -u jdbc:oracle:thin:@localhost:1521:mydb -n user -p pass -nn devdb

OR use in a properties file:

url=jdbc:oracle:thin:@localhost:1521:mydb
user=user
password=pass
nickname=devdb

I originally wanted to name this command alias and use a -a option at the command prompt, but I realized that alias and unalias also seemed to be reserved for a future command alias function, so I went with nickname. I was also a little confused about which documentation files were autogenerated and which I needed to update. Let me know if I missed any!

… property to reflect a friendly name in the command prompt and list command
@julianhyde
Copy link
Owner

Fixed in ba9dd38.

Thanks for the PR, @mmattozzi! Nice work.

@julianhyde julianhyde closed this Mar 27, 2017
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