blob: 064e23e11ffa01f4edd9eb3c59fd30ef3f47731a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# tw.weekly.c130
The Weekly Challenge - #130 - Tyler Wardhaugh
## Usage
Clojure ([installation instructions](https://clojure.org/guides/getting_started#_clojure_installer_and_cli_tools)) required for `clojure` commands; Babashka ([installation instructions](https://github.com/babashka/babashka#quickstart)) required for the `bb` commands.
Run the project directly (shows default output from both tasks):
$ clojure -M -m tw.weekly.c130.core
# ... or ...
$ bb run both
Run the project's tests (which are samples from the task descriptions):
$ clojure -X:test
# ... or ...
$ bb run test
Run Task #1 with input
$ clojure -M -m tw.weekly.c130.t1 N
# ... or ...
$ bb run task-1 N
Run Task #2 with input:
$ clojure -M -m tw.weekly.c130.t2 D S
# ... or ...
$ bb run task-2 D S
View available tasks Babashka can run:
$ bb tasks
## Project Template
I used Sean Corfield's clj-new to generate the project template
See [seancorfield/clj-new: Generate new projects based on clj, Boot, or Leiningen Templates!](https://github.com/seancorfield/clj-new) for more information.
## License
Copyright © 2021 Tyler Wardhaugh
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
|