From 4a0c3e0532568e03d0544e523edd5ec25ca107b4 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 9 Nov 2019 15:59:53 -0700 Subject: [PATCH] raco pkg new --- .gitignore | 6 +++++ info.rkt | 8 +++++++ main.rkt | 50 +++++++++++++++++++++++++++++++++++++++++ scribblings/vohea.scrbl | 10 +++++++++ 4 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 info.rkt create mode 100644 main.rkt create mode 100644 scribblings/vohea.scrbl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a59348 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*~ +\#* +.\#* +.DS_Store +compiled/ +/doc/ diff --git a/info.rkt b/info.rkt new file mode 100644 index 0000000..c78f29e --- /dev/null +++ b/info.rkt @@ -0,0 +1,8 @@ +#lang info +(define collection "vohea") +(define deps '("base")) +(define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) +(define scribblings '(("scribblings/vohea.scrbl" ()))) +(define pkg-desc "Description Here") +(define version "0.0") +(define pkg-authors '(edwargix)) diff --git a/main.rkt b/main.rkt new file mode 100644 index 0000000..7e16dd4 --- /dev/null +++ b/main.rkt @@ -0,0 +1,50 @@ +#lang racket/base + +(module+ test + (require rackunit)) + +;; Notice +;; To install (from within the package directory): +;; $ raco pkg install +;; To install (once uploaded to pkgs.racket-lang.org): +;; $ raco pkg install <> +;; To uninstall: +;; $ raco pkg remove <> +;; To view documentation: +;; $ raco docs <> +;; +;; For your convenience, we have included LICENSE-MIT and LICENSE-APACHE files. +;; If you would prefer to use a different license, replace those files with the +;; desired license. +;; +;; Some users like to add a `private/` directory, place auxiliary files there, +;; and require them in `main.rkt`. +;; +;; See the current version of the racket style guide here: +;; http://docs.racket-lang.org/style/index.html + +;; Code here + + + +(module+ test + ;; Any code in this `test` submodule runs when this file is run using DrRacket + ;; or with `raco test`. The code here does not run when this file is + ;; required by another module. + + (check-equal? (+ 2 2) 4)) + +(module+ main + ;; (Optional) main submodule. Put code here if you need it to be executed when + ;; this file is run using DrRacket or the `racket` executable. The code here + ;; does not run when this file is required by another module. Documentation: + ;; http://docs.racket-lang.org/guide/Module_Syntax.html#%28part._main-and-test%29 + + (require racket/cmdline) + (define who (box "world")) + (command-line + #:program "my-program" + #:once-each + [("-n" "--name") name "Who to say hello to" (set-box! who name)] + #:args () + (printf "hello ~a~n" (unbox who)))) diff --git a/scribblings/vohea.scrbl b/scribblings/vohea.scrbl new file mode 100644 index 0000000..1457015 --- /dev/null +++ b/scribblings/vohea.scrbl @@ -0,0 +1,10 @@ +#lang scribble/manual +@require[@for-label[vohea + racket/base]] + +@title{vohea} +@author{edwargix} + +@defmodule[vohea] + +Package Description Here -- 2.38.4