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

Show nix command output #48

Closed
srid opened this issue Aug 20, 2023 · 3 comments
Closed

Show nix command output #48

srid opened this issue Aug 20, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request gui

Comments

@srid
Copy link
Member

srid commented Aug 20, 2023

In some cases, a nix command can take a while to run (cf. IFD use in nammayatri). When that happens, it is useful to see live feedback (command's stdout/stderr) in the browser itself.

This can also come in handy when interacting with Nix from the browser (eg: #9).

Potential libraries to use,

@srid srid added the enhancement New feature or request label Aug 20, 2023
@shivaraj-bh shivaraj-bh self-assigned this Sep 15, 2023
@shivaraj-bh
Copy link
Member

nix commands' progress output is redirected to stderr. Looks like if the session is not TTY, the output is no more a progress bar by default and it will look like this. This looks better than a Spinner but sometimes it can be stuck on a command (for instance, downloading a huge tar) and the user might be clueless about the status.

Got a suggestion on matrix to use PTY to display the progress bar. Will this be useful in the long run if we will allow users to interact with the terminal from the browser?

@srid
Copy link
Member Author

srid commented Sep 18, 2023

For this task, we only care about streaming nix's output in the browser―not user interaction. User interaction can happen in a future task, possibly based on raphamorim/rio#25

but sometimes it can be stuck on a command (for instance, downloading a huge tar) and the user might be clueless about the status.

That's fine, for now. The browser view should obviously have some indication that the command is still running.

@srid
Copy link
Member Author

srid commented Sep 18, 2023

That said, if you think having real terminal in the browser is viable right now - feel free to explore that path, @shivaraj-bh

@srid srid changed the title Stream nix command output to browser Show nix command output Oct 12, 2023
@shivaraj-bh shivaraj-bh removed their assignment Oct 16, 2023
@srid srid assigned srid and shivaraj-bh and unassigned shivaraj-bh Oct 16, 2023
@srid srid added the gui label Jul 15, 2024
@srid srid closed this as completed Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gui
Projects
None yet
Development

No branches or pull requests

2 participants