Hi, Kristoffer Ström <[email protected]> skribis:
> If we're doing an overhaul of the command line arguments, i would love > to see a more "scheme first" approach. > > At the moment, functionality such as "guix shell" is very difficult to > access directly from scheme, and i've usually had to fall back to > calling it like (system "guix shell" (concat strings made from s-exps > and all)) > > Ideally, in my humble opinion, the command line command should be a thin > wrapper around a scheme-first API. I agree. Note that there’s a ‘guix-shell’ procedure in (guix scripts shell), and likewise for all the other commands, which you can invoke instead of using (system "guix shell"). And then of course, there are the APIs that ‘guix shell’ builds upon, like (guix profile), (gnu build linux-containers), etc., but I agree that there’s quite a gap between these two that would be nice to bridge. Also, maybe the time has come to document those APIs that have been stable, like (guix profile), so people can use them fearlessly. Ludo’.
