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

Added 'Open Karaf console' feature #59

Merged
merged 1 commit into from
Nov 19, 2017
Merged

Conversation

kubawolanin
Copy link
Collaborator

This was a feature request from Peder Schmedling on Twitter - https://twitter.com/Leif_/status/931479506824544256

The PR might be a little bit related to #9.
It introduces a new configuration setting - openhab.karafCommand.

By default its value is ssh openhab@%openhabhost% -p 8101
%openhabhost% is effectively replaced with the openhab.host value.

Pressing Ctrl + Shift + P and choosing "openHAB: Open Karaf console" the command will execute in a new Terminal window (default one) integrated with VSCode.

In my personal setup my default terminal is Git Bash:

"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",

karaf

Note that you need to:

  • have ssh installed on your environment
  • have Karaf exposed to the external interface

This feature allows you to modify the new param and e.g. show the openHAB logs immediately:

    "openhab.karafCommand": "ssh openhab@%openhabhost% -p 8101 -t 'log:tail'",

Signed-off-by: Kuba Wolanin hi@kubawolanin.com

Signed-off-by: Kuba Wolanin <hi@kubawolanin.com>
@kubawolanin kubawolanin merged commit ab67a3c into openhab:master Nov 19, 2017
@kubawolanin kubawolanin deleted the karaf branch November 19, 2017 20:17
@ThomDietrich
Copy link
Member

Great addition!

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