Skip to content

Snow chibi list all - #1149

Open
Retropikzel wants to merge 3 commits into
ashinn:masterfrom
Retropikzel:snow-chibi-list-all
Open

Snow chibi list all#1149
Retropikzel wants to merge 3 commits into
ashinn:masterfrom
Retropikzel:snow-chibi-list-all

Conversation

@Retropikzel

Copy link
Copy Markdown
Contributor

Adds a list-all command to snow-chibi. It has options:

  • --sexp?
    • Output as Scheme readable s-expression
  • --dotted-format?
    • Library names in dotted format, (retropikzel tap) -> retropikzel.tap
  • --separator
    • Set the separator for library list items

Examples:

snow-chibi list-all
> (retropikzel tap) (srfi 170) (retropikzel compile-r7rs)...
snow-chibi -sexp?=1 list-all
> ((retropikzel tap) (srfi 170) (retropikzel compile-r7rs)...)
snow-chibi --dotted-format list-all
> retropikzel.tap srfi.170 retropikzel.compile-r7rs...
snow-chibi --sexp?=1 --dotted-format?=1 list-all
> (retropikzel.tap srfi.170 retropikzel.compile-r7rs...)
snow-chibi --separator="___" list-all
> (retropikzel tap)___(srfi 170)___(retropikzel compile-r7rs)...

@ashinn ashinn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread tools/snow-chibi.scm
(search
"search for packages"
(@ ,@search-spec) (,command/search terms ...))
(list-all

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently search with no terms just takes a long time to output nothing. We could repurpose that to be equivalent to list-all, though it may not be intuitive. It's fine to make list-all a separate command, but they should share the same underlying code.

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

Successfully merging this pull request may close these issues.

2 participants