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

syntactic sugar for dependency queries #10

Open
crazyscot opened this issue Jul 12, 2017 · 0 comments
Open

syntactic sugar for dependency queries #10

crazyscot opened this issue Jul 12, 2017 · 0 comments

Comments

@crazyscot
Copy link
Contributor

I want to ask questions of the form "What packages does package X depend on?" without having to try to remember the byzantine syntax or tangle with the myriad of label types.

$ muddle query depends foo
Bad dependency type: foo
[... help message elided ...]
[... lots of frustration elided ...]
$ muddle query depends all-short package:foo{\*}/preconfig
Dependencies for package:foo{*}/preconfig
-----
package:foo{apps}/preconfig <-MakeBuilder-- [ checkout:foo/checked_out, package:bar{base}/postinstalled, package:baz{libs}/postinstalled, package:host_aptget_pkg{host_aptget_role}/postinstalled, package:qux{support}/postinstalled, package:fred{support}/postinstalled, package:barney{support}/postinstalled ]
package:foo{operational}/preconfig <-MakeBuilder-- [ checkout:foo/checked_out, package:foo{apps}/postinstalled ]

The output is a bit hard to parse as well. I really want the interaction to go more along the lines of:

$ muddle depends foo
bar baz qux fred barney

The dependent packages should probably be alphabetised, or possibly partial-ordered based on dependencies amongst them.

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