unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: Josh Marshall <joshua.r.marshall.1991@gmail.com>,
	guix-devel <guix-devel@gnu.org>
Subject: Re: Should guix track package aliases?
Date: Sun, 10 May 2020 12:08:12 +0200	[thread overview]
Message-ID: <ec50e903-65b1-edfb-6cfb-94e4f5823dc5@gmail.com> (raw)
In-Reply-To: <CAFkJGReHu-NTVkFSvQnzG-YOkJa8J+x5KdOxQZkKe1uej4QVnw@mail.gmail.com>

On 09/05/2020 22:18, Josh Marshall wrote:
> This appears that it could be low effort, not interfere with any 
> commands, not really change the interface, and make life easier.  
> Anybody have any thoughts as to whether this would be a good idea or not?

What about the following:

------------>8-----------------------8<--------------------------------

# default to list guix things without --all
$ guix rosetta [--package|-p] truc-bidule
machin-chose (guix)

# Show available translations with --all
$ guix rosetta --package|-p [--all|-a] truc-bidule
bidule-chouette (ubuntu)
bouzin (freebsd)
machin-chose (guix)
truc-bidule (debian) <- this one being also added by --all
trucmuche (centos)
truc-machin (fedora, rhel)

# default to list guix things without --all
$ guix rosetta [--service|-s|--daemon] systemctl restart THING
herd restart THING

# Show available translations with --all
$ guix rosetta [--service|-s|--daemon] [--all|-a] herd status THING
systemctl status THING (systemd)
rcctl check THING (4.4BSD rc)
/etc/init.d/THING status (sysv-init)

# default to list guix things without --all
$ guix rosetta [--command|-c] yum search THING
guix search THING

# Show available translations with --all
$ guix rosetta [--command|-c] [--all|-a] yum install
guix package -i (guix official)
guix install (guix alias)
apt-get install (debian official)
apt install (debian alias)
yum install (centos)
dnf install (fedora, rhel)

$ guix rosetta [--help|-h]
guix rosetta [--help|-h] [--package|-p] [--command|-c] [--all|-a] THING*
Rosetta stone to help translation of various things between unix dialects.

The default mode is to only show translation targeting guix.

--help|-h             Show this help
--all|-a              Show all available translations for THING
--command|-c          Show package manager command translations
--service|-s|--daemon Show service, daemon manager translations
--package|-p          Show package names translations

This tool is only giving fuzzy answers that may not be fully accurate.

------------>8-----------------------8<--------------------------------

This would go lovely along the guix foreign distro installer.

I'm only (but still only) half-joking, this is a tool I'd have
loved to have on multiple occasions, often not on guix.

Used googl often being used to approximate it, crudely but effectively.

I'm not starting to work on it though, but I'd gladly help anyone
who do.

-- 
Vincent Legoll



  parent reply	other threads:[~2020-05-10 10:08 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09 20:18 Should guix track package aliases? Josh Marshall
2020-05-10  9:10 ` Nikita Gillmann
2020-05-10  9:57 ` zimoun
2020-05-10 12:13   ` Julien Lepiller
2020-05-10 13:33     ` zimoun
2020-05-10 18:16       ` Josh Marshall
2020-05-24 19:25         ` Josh Marshall
2020-05-25 10:41           ` zimoun
2020-05-25 11:57             ` Josh Marshall
2020-05-25 12:04               ` Nicolò Balzarotti
2020-05-25 14:20                 ` Josh Marshall
2020-05-25 21:57                   ` Vincent Legoll
2020-05-25 22:30                     ` Josh Marshall
2020-05-25 23:14                       ` zimoun
2020-05-25 23:19                         ` Josh Marshall
2020-05-10 10:08 ` Vincent Legoll [this message]
2020-05-10 12:53   ` zimoun
2020-05-28 16:27     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec50e903-65b1-edfb-6cfb-94e4f5823dc5@gmail.com \
    --to=vincent.legoll@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=joshua.r.marshall.1991@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).