Initial import of rash-git-cli
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#lang scribble/manual
|
||||
|
||||
@(require (for-label racket/base
|
||||
git-cli))
|
||||
|
||||
@title[#:tag "top"]{rash-git-cli}
|
||||
@author["Hans Dijkema / hans@dijkewijk.nl"]
|
||||
|
||||
@section{Rash integration}
|
||||
|
||||
The @tt{rash-git-cli} package adds a Linea/Rash line meaning to the
|
||||
@racket[git] procedure from @racketmodname[git-cli].
|
||||
|
||||
@verbatim{
|
||||
#lang rash
|
||||
|
||||
(require rash-git-cli)
|
||||
|
||||
git status
|
||||
git add -A
|
||||
git log --oneline -5
|
||||
git commit -m "Update documentation"
|
||||
}
|
||||
|
||||
In an ordinary Racket expression, @racket[git] remains the first-class
|
||||
procedure exported by @racketmodname[git-cli]:
|
||||
|
||||
@racketblock[
|
||||
(git 'status)
|
||||
(procedure? git)
|
||||
]
|
||||
|
||||
Bare words in line mode are quoted before they are passed to @racket[git].
|
||||
Quoted strings and parenthesized Racket expressions retain their normal Racket
|
||||
meaning.
|
||||
|
||||
The base @tt{git-cli} package has no dependency on Rash, Linea, or this package.
|
||||
Reference in New Issue
Block a user