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

Support for libral #89

Open
baronfel opened this issue Feb 7, 2018 · 0 comments
Open

Support for libral #89

baronfel opened this issue Feb 7, 2018 · 0 comments

Comments

@baronfel
Copy link

baronfel commented Feb 7, 2018

Description

I came across this libral project the other day and it seems like a decent candidate for a type provider, similar to powershell but for linux systems specifically. I'm not sure how much penetration it has, but it seems like an interesting idea.

In a nutshell, we could either invoke the ralsh executeable to discover things about a (possibly remote) system, or we could use p/invoke bindings to libral locally to do the same, and support an interface like:

let ral = Ral(target= "external hostname", sudo=true)
ral.Providers.User.Resource.User.List()
|> Seq.iter (fun u -> sprintf "%s-%s" u.Name u.Group)

ral.Providers.User.Resource.User.Add(User("chet", "sudoers"))

things like that. This is a good target for a type provider because the set of providers, the kinds of resources, and the operations that can be done on the resources are highly dynamic.

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

1 participant