Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

[TRAFODION-2211] trafci can use history cmd #879

Merged
merged 3 commits into from
Dec 22, 2016

Conversation

mashengchen
Copy link
Contributor

trafci should support up, down, left, right key in the keyboard

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/1465/

@Traf-Jenkins
Copy link

@Traf-Jenkins
Copy link

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/1468/

@Traf-Jenkins
Copy link

Copy link
Contributor

@moscowgentalman moscowgentalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a super cool new feature. I have a question though, need your clarification.

@@ -172,7 +176,8 @@ public String readLine() throws UnsupportedEncodingException, UserInterruption,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will remove Ctrl-C signal handler, did you test Ctrl-C in trafci? It should do a 'cancel query' if I remember it correctly. Anyway, you should make sure Ctrl-C has same behavior as before, should not be broken by this change.
I am not sure, need to check the trafci manual, but wondering if you have tested it or not? Since you comments out the signal handler.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh, i really not notice that.. i will research how to add this behavior.

@Traf-Jenkins
Copy link

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/1472/

@Traf-Jenkins
Copy link

Copy link
Contributor

@moscowgentalman moscowgentalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now. Very thankful to have this feature added, this is a very user friendly feature.
+1


@@@ END COPYRIGHT @@@
-->
<!-- @@@ START COPYRIGHT @@@ Licensed to the Apache Software Foundation (ASF)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what happened to the license text here. Could we put the original back?


@@@ END COPYRIGHT @@@
-->
<!-- @@@ START COPYRIGHT @@@ Licensed to the Apache Software Foundation (ASF)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about the license text.

Copy link
Contributor

@DaveBirdsall DaveBirdsall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly outside my area of expertise. The license text seems to have been changed unnecessarily in two files.

@selvaganesang
Copy link
Contributor

This change is definitely very helpful. Is the change in java/org/trafodion/ci/ConsoleReader.java alone sufficient to take care of history cmd? If so, can you please add some description for other changes.

@mashengchen
Copy link
Contributor Author

the most important change is in java/org/trafodion/ci/ConsoleReader.java, and the change in java/org/trafodion/ci/Session.java is help to remove duplicates the prompt.
other changes are help to pass compile and deploy trafci.

@mashengchen
Copy link
Contributor Author

pom.xml & installer_pom.xml : add dependence of jline and format it(replace tab to 4 blanks).
install_jar.xml : add the related jar into the lib folder, and package them together
makefile : add clean part
build.xml : let it work
Installer.java-tmpl : help to do deployment

@Traf-Jenkins
Copy link

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/1480/

@Traf-Jenkins
Copy link

@selvaganesang
Copy link
Contributor

Thanks @mashengchen for your explanation. Please consider adding all other issues fixed in the JIRA too. +1 Looks good

Copy link
Contributor

@DaveBirdsall DaveBirdsall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Thanks for reformatting the licence texts. Looks like this is ready to merge to me.

@asfgit asfgit merged commit 7155a0e into apache:master Dec 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants