From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Extending 'guix download' Date: Sun, 01 Feb 2015 15:34:04 -0500 Message-ID: <87pp9tjrr7.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1Dh-0004U1-Jm for guix-devel@gnu.org; Sun, 01 Feb 2015 15:34:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI1Dg-0007de-1a for guix-devel@gnu.org; Sun, 01 Feb 2015 15:34:13 -0500 Received: from mail.fsf.org ([208.118.235.13]:44819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1Df-0007dW-Vq for guix-devel@gnu.org; Sun, 01 Feb 2015 15:34:11 -0500 Received: from 209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.40.86]:41493 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1YI1Da-00069A-SN for guix-devel@gnu.org; Sun, 01 Feb 2015 15:34:08 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org I'm looking for thoughts about what the CLI should look like for an improved 'guix download' that is capable of downloading git repos, svn repos, etc. in addition to files over HTTP. There could be to be additional context-sensitive switches to specify details beyond a URL. For example, git repos need a commit SHA. guix download --method=git --commit=74217b9 git@gitorious.org/foo/foo.git Or perhaps more flags aren't needed and we can use a specific order of arguments: guix download --method=git git@gitorious.org/foo/foo.git 74217b9 Or we could create subcommands for each download method: guix download git git@gitorious.org/foo/foo.git 74217b9 I really don't know what the best option is, because I'm not very experienced with writing sensible command-line interfaces. Thoughts? -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate