unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34651: guix commands should print a message, if they produce only trivial output by default
@ 2019-02-25 16:24 Björn Höfling
  2019-03-01 17:29 ` swedebugia
  0 siblings, 1 reply; 2+ messages in thread
From: Björn Höfling @ 2019-02-25 16:24 UTC (permalink / raw)
  To: 34651

[-- Attachment #1: Type: text/plain, Size: 1436 bytes --]

I noticed that if you call "guix COMMAND" for some COMMANDs without any
options given, they produce something which is not very useful to the
user. I first noticed it with guix pack:

When "guix pack" is run without any options, it builds an empty pack:

$ guix pack
/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
$ tar tzvf /gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
drwxrwxr-t root/root         0 1970-01-01 01:00 ./gnu/store/
dr-xr-xr-x root/root         0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/
dr-xr-xr-x root/root         0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/
-r--r--r-- root/root       414 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/profile
-r--r--r-- root/root        37 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/manifest

I think from a user perspective it would be better to print a help
message and not build an empty pack.

On the other hand, I tried out other guix commands and at least it is a
consistent behaviour, they start with the default values, like "guix
graph" outputs just an empty graph.

"guix system" complains it needs a subcommand, which is a different
case.

But then again we have this complaint:

guix system container
guix system: error: wrong number of arguments for action 'container'

WDYT?

Björn

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#34651: guix commands should print a message, if they produce only trivial output by default
  2019-02-25 16:24 bug#34651: guix commands should print a message, if they produce only trivial output by default Björn Höfling
@ 2019-03-01 17:29 ` swedebugia
  0 siblings, 0 replies; 2+ messages in thread
From: swedebugia @ 2019-03-01 17:29 UTC (permalink / raw)
  To: 34651, bjoern.hoefling

[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]

"Björn Höfling" <bjoern.hoefling@bjoernhoefling.de> skrev: (25 februari 2019 17:24:56 CET)
>I noticed that if you call "guix COMMAND" for some COMMANDs without any
>options given, they produce something which is not very useful to the
>user. I first noticed it with guix pack:
>
>When "guix pack" is run without any options, it builds an empty pack:
>
>$ guix pack
>/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
>$ tar tzvf
>/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz
>drwxrwxr-t root/root         0 1970-01-01 01:00 ./gnu/store/
>dr-xr-xr-x root/root         0 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/
>dr-xr-xr-x root/root         0 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/
>-r--r--r-- root/root       414 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/profile
>-r--r--r-- root/root        37 1970-01-01 01:00
>./gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/manifest
>
>I think from a user perspective it would be better to print a help
>message and not build an empty pack.
>
>On the other hand, I tried out other guix commands and at least it is a
>consistent behaviour, they start with the default values, like "guix
>graph" outputs just an empty graph.
>
>"guix system" complains it needs a subcommand, which is a different
>case.
>
>But then again we have this complaint:
>
>guix system container
>guix system: error: wrong number of arguments for action 'container'
>
>WDYT?
>
>Björn

I think we should print helpful hints or the contents of --help in these situations. 
-- 
Sent from my k-9 mail for Android.

[-- Attachment #2: Type: text/html, Size: 1990 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-01 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-25 16:24 bug#34651: guix commands should print a message, if they produce only trivial output by default Björn Höfling
2019-03-01 17:29 ` swedebugia

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).