
Adds `pkg/pnr-db', `raco pkg index-copy', and `raco pkg index-show'. Includes tools to build a database of modules that are supplied by packages, which will be useful for a tool to recommend package installs when a module is not found. Also, document `pkg/lib' and add extra helper functions for getting package information from a package name resolver.
16 lines
320 B
Racket
16 lines
320 B
Racket
#lang at-exp racket/base
|
|
(require scribble/manual
|
|
scribble/core)
|
|
|
|
(provide (all-defined-out))
|
|
|
|
(define (command s)
|
|
@exec{raco pkg @|s|})
|
|
|
|
(define (command-ref s)
|
|
@(link-element "plainlink" @command[s] `(raco-pkg-cmd ,s)))
|
|
|
|
(define (command/toc s)
|
|
@(toc-target-element #f @command[s] `(raco-pkg-cmd ,s)))
|
|
|