You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
There's no real way to issue subcommands (a'la svn/git), other than by passing them all as parameters into the call. That means there's a strong asymmetry in the syntax:
so.git.help()
vs
so.git("commit", "--help")
I don't see a good way to fix that with the current structure of the API, but I think remodelling it would allow mapping things in a way that's more consitent:
so.ls()
so.ls["-l"]()
so.ls["--color":"always"]()
so.git.commit["--help"]()
# or perhaps better asso.git["commit"]["--help"]
so.git["ls-files"]["--help"]
By abusing slices, ShellOut could get have a syntax for specifying the values of non-boolean options.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There's no real way to issue subcommands (a'la svn/git), other than by passing them all as parameters into the call. That means there's a strong asymmetry in the syntax:
vs
I don't see a good way to fix that with the current structure of the API, but I think remodelling it would allow mapping things in a way that's more consitent:
By abusing slices, ShellOut could get have a syntax for specifying the values of non-boolean options.
The text was updated successfully, but these errors were encountered: