Comments (10)
We now have a function to run CLI commands and show its output in the output view:
from vscode-gitops-tools.
Did you wire thsoe command ouputs to our new GitOps progress bar too?
Not yet. Might do that today. If you mean the status bar item.
from vscode-gitops-tools.
@murillodigital here is git
commands and output channel sample strictly for illustration purposes. I think our flux
CLI integration should function similarly for all the flux commands we execute.
from vscode-gitops-tools.
@murillodigital here is
git
commands and output channel sample strictly for illustration purposes. I think ourflux
CLI integration should function similarly for all the flux commands we execute.
@RandomFractals I think this does indeed look good - just to make sure we're on the same page:
- GitOps option in the drop down where
Git
is selected in the screenshot - Having that option selected: calls and output generated by the command executions will show in the pseudo-terminal
- stdout and stderr will stream to the pseudo-terminal
Let me know if this is precise. Thanks!
from vscode-gitops-tools.
yeah, actually, those are all custom Output channels. Think of them as a panel for custom logging and diagnostics in vscode.
We'll probably use shelljs
just like k8s tools ext. does for running flux
commands we need.
I looked at other alternatives and they were either not maintained or with too many issues. Besides, I think it would be best if both of our tools use the same shell lib for running terminal commands.
Anything our flux
command runs produce we'll log in that Outputs panel area under GitOps
, including error outputs.
from vscode-gitops-tools.
@usernamehw let's add shelljs
to our dependencies for this implementation:
https://github.com/shelljs/shelljs
Please bump extension version to 0.5.0 when you update our package.json
for new commits that will go into sprint 5.
Also, please review these notes on shell integration: #8 (comment)
We already have custom output channel I created. You just need to wire it on activation and use it for the new flux shell command outputs:
https://github.com/weaveworks/vscode-gitops-tools/blob/main/src/output.ts
from vscode-gitops-tools.
that looks awesome! I just need to check your last commit and review this implementation.
We should show command that produced the output with >
like git does, and other such extensions.
Did you wire thsoe command ouputs to our new GitOps progress bar too?
from vscode-gitops-tools.
Not sure if we should put all commands into output. They will be executed async.
For example, when I used both flux
and kubectl
versions check at the same time they wrote into output:
Longer/slower commands with be all mixed together.
from vscode-gitops-tools.
that's fine. we want to show the trace of all commands we run for all the CLIs we use to populate those k8s cluster views. Think of it as a diagnostics panel to troubleshoot how things are orchestrated in the cloud.
from vscode-gitops-tools.
I believe this can be closed. If you want to see json output from kubectl
commands, I would recommend you create a separate ticket and add dev mode or debug config option to toggle it.
from vscode-gitops-tools.
Related Issues (20)
- Create secret checkbox not working
- Not implemented on AKS/ARC HOT 1
- Prerelease - v0.24.1690210418 reconcile action folds up the treeview HOT 2
- The `flux check` is too aggressive HOT 3
- Performance: still struggles on larger clusters HOT 4
- HelmReleases sometimes pick the wrong API group HOT 1
- Kubectl proxy is run again for multiple extension instances HOT 2
- Release Plan for v0.25.1 patch release
- Editor window can hang on first load HOT 1
- Telemetry collection has been broken since 2-3 weeks ago HOT 5
- Transient states show an error icon HOT 3
- The "Create Source/Kustomization" workflow appears to hang
- Flux binary not found if installed with Brew HOT 2
- Extensions causes lots of kubectl processes to spawn that never finish HOT 10
- Support more Weave GitOps Enterprise features HOT 1
- It's much too easy to accidentally trigger `flux install` HOT 4
- Reorganize and refactor all treeviews HOT 1
- Workload section items overlapping on VScode HOT 11
- different flux namespace HOT 1
- The extension is broken since December HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-gitops-tools.