envd
envd copied to clipboard
feat(lang): Support local-shell
Description
It will be great to support running some shell scripts during the build process.
def get_kube_nodes(name):
ip = local-shell("kubectl get nodes -o=jsonpath='{range .items[*]}{.metadata.name}{":"}{.status.addresses[?(@.type=="InternalIP")].address}{"\n"}{end}'")
Ref https://api.tilt.dev/core/cmd-v1alpha1.html#Cmd
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
I think it can be done by https://github.com/tensorchord/envd/issues/825
I think these are two different features. #825 provides CLI arguments in envd up.
It's much more flexible to do it in a shell and pass the result as an argument. Also, it's easier to debug in the shell.
I understand your opinion here.