envd icon indicating copy to clipboard operation
envd copied to clipboard

feat(CLI): Add a demo command to give users a interactive shell and try envd

Open gaocegege opened this issue 3 years ago • 15 comments

Description

envd demo creates a build.envd demo and up it.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

gaocegege avatar Aug 02 '22 07:08 gaocegege

Can we support envd up -f <URL> to build and run the remote envd file?

kemingy avatar Aug 02 '22 08:08 kemingy

SGTM but the build context is still a problem. We cannot get the remote build context from the URL.

gaocegege avatar Aug 02 '22 08:08 gaocegege

Probably we can make this part of envd init command, such as envd init --demo

VoVAllen avatar Aug 02 '22 08:08 VoVAllen

In my opinion, the command envd demo should create the build.envd in tmp/xx/ then run envd up based on this. Then the users can get a shell from it directly.

gaocegege avatar Aug 02 '22 08:08 gaocegege

If it is just a creation of build.envd and up, I dont think we should provide a top-level subcommand for it. But I think we could do more and how about we provide a interfact shell like:

$ envd demo
> Which one do you want to use: Python/R/Julia
The following packages will be installed for you:
- numpy
- 
> What packages do you want install extra

aseaday avatar Aug 03 '22 02:08 aseaday

Looks promising to me. :tada:

gaocegege avatar Aug 03 '22 02:08 gaocegege

It also can be used in envd init

gaocegege avatar Aug 03 '22 02:08 gaocegege

It also can be used in envd init

yes, we could had a feature to support interactive set simple envd build manifest first.

aseaday avatar Aug 03 '22 02:08 aseaday

interactive shell:

  • https://github.com/charmbracelet/gum

kemingy avatar Aug 05 '22 04:08 kemingy

This would be helpful, an interactive shell to choose a simple initial configuration.

AlexXi19 avatar Nov 15 '22 08:11 AlexXi19

Should we promote this issue's priority? @gaocegege @VoVAllen @kemingy

aseaday avatar Nov 15 '22 09:11 aseaday

I marked the issue priority/medium

gaocegege avatar Nov 15 '22 09:11 gaocegege

Interested in this issue, could use this library: https://github.com/charmbracelet/bubbletea

AlexXi19 avatar Nov 16 '22 05:11 AlexXi19

The lib LGTM. Please pick it up if you are interested in it!

gaocegege avatar Nov 16 '22 08:11 gaocegege

/assign @AlexXi19

gaocegege avatar Nov 16 '22 08:11 gaocegege