Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

[WIP] Brigadeterm - #12

Open
radu-matei wants to merge 2 commits into
brigadecore:mainfrom
radu-matei:brigadeterm
Open

[WIP] Brigadeterm#12
radu-matei wants to merge 2 commits into
brigadecore:mainfrom
radu-matei:brigadeterm

Conversation

@radu-matei

Copy link
Copy Markdown

depends on #11

Radu M added 2 commits June 21, 2019 07:23
Ensure Brigade terminal exists

Signed-off-by: Radu M <root@radu.sh>
Signed-off-by: Radu M <root@radu.sh>
@radu-matei radu-matei changed the title Brigadeterm [WIP] Brigadeterm Jun 21, 2019

@itowlson itowlson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I just saw the WIP label on this so I might have jumped the gun - I know you were already reworking the terminal stuff, and please ignore other comments if already in hand!

Comment thread src/brigade/brigade.ts
const brigadeNamespace = config.getConfiguredNamespace() || 'default';
const cmd = `${bin} --namespace ${brigadeNamespace}`;

const terminal = ensureTerminal();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs to handle the case where a CLI dashboard is already running. You don't want to send this text to a terminal that is already running brigadeterm. We should either:

  1. Open a new brigadeterm instance each time; or
  2. If there is already a brigateterm open then switch to it, otherwise open a new terminal.

Comment thread package.json
{
"command": "brigade.openCliDashboard",
"category": "Brigade",
"title": "Open CLI Dashboard (Brigadeterm)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Terminal Dashboard might align more closely to the program name (and the dashboard itself is not a CLI...)?

Comment thread src/extension.ts
vscode.commands.registerCommand("brigade.rerunBuild", onCommandRerunBuild),
vscode.commands.registerCommand("brigade.refreshProjectExplorer", onCommandRefreshProjectExplorer),
vscode.commands.registerCommand("brigade.openWebDashboard", openWebDashboard),
vscode.commands.registerCommand("brigade.openCliDashboard", openCliDashboard),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Longer term it would be good to be able to right-click a project or build and open the dashboard to that object. That doesn't need to be in the first cut though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants