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

Commands with shell interface should support the Sh monad #173

Open
CGenie opened this issue May 16, 2018 · 1 comment
Open

Commands with shell interface should support the Sh monad #173

CGenie opened this issue May 16, 2018 · 1 comment

Comments

@CGenie
Copy link

CGenie commented May 16, 2018

We currently have sshPairs which takes a list of text tuples. But actually any command that supports running subcommands, like su -c, bash -c, ssh should support the Sh monad so we can run the code more or less like this:

shelly $ do
    ssh "machine" $ do
        ...

This way we get full typechecked programs in the subcommand.

@gregwebs
Copy link
Owner

Its a good idea. I don't think this would be the Sh monad since the semantics are going to end up being different. A different monad could support a more limited API: it would be a lot of work to attempt to support the entire Shelly API running remotely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants