diff --git a/bins/inbreeding/README.md b/bins/inbreeding/README.md index e747cd4f0a5425639b453cbc3e18dfaa0a922a74..32e32cac20b9bf4f710cc1b73c6f529c0b5d79e7 100644 --- a/bins/inbreeding/README.md +++ b/bins/inbreeding/README.md @@ -1,6 +1,6 @@ -- build the example for best performance with [`inbreeding build`](./build.nu) -- run the experiment with [`inbreeding run`](./run.nu) -- plot the results with [`inbreeding plot`](./plot.nu) +- build the example for best performance with [`inbreeding build`](./src/.nushell/build.nu) +- run the experiment with [`inbreeding run`](./src/.nushell/run.nu) +- plot the results with [`inbreeding plot`](./src/.nushell/plot.nu) # Example ```bash @@ -42,7 +42,7 @@ inbreeding load $experiment | inbreeding plot ## plot all experiments ```bash -use bins/inbreeding/consts.nu CACHE +use bins/inbreeding/src/.nushell/consts.nu CACHE use bins/inbreeding const FIGURES_DIR = ($CACHE | path join figures) diff --git a/bins/inbreeding/mod.nu b/bins/inbreeding/mod.nu index 15e876c6ccb6c855ca5e4f1e2cd6e193fd800e66..bb0b45a4ea81ee30605a4db3c30e6978d6d3bb52 100644 --- a/bins/inbreeding/mod.nu +++ b/bins/inbreeding/mod.nu @@ -1,7 +1,7 @@ -export use build.nu -export use watch.nu -export use run.nu -export use inspect.nu -export use list.nu -export use load.nu -export use plot.nu +export use src/.nushell/build.nu +export use src/.nushell/watch.nu +export use src/.nushell/run.nu +export use src/.nushell/inspect.nu +export use src/.nushell/list.nu +export use src/.nushell/load.nu +export use src/.nushell/plot.nu diff --git a/bins/inbreeding/build.nu b/bins/inbreeding/src/.nushell/build.nu similarity index 100% rename from bins/inbreeding/build.nu rename to bins/inbreeding/src/.nushell/build.nu diff --git a/bins/inbreeding/consts.nu b/bins/inbreeding/src/.nushell/consts.nu similarity index 72% rename from bins/inbreeding/consts.nu rename to bins/inbreeding/src/.nushell/consts.nu index 177d568cedaf2db37854e65516e47f9fa3a68afc..f7357d9df011374c6a7ae6a6acc593dd64c3c592 100644 --- a/bins/inbreeding/consts.nu +++ b/bins/inbreeding/src/.nushell/consts.nu @@ -1,2 +1,4 @@ export const BIN = "./target/release/inbreeding" export const CACHE = ($nu.home-path | path join .cache komodo inbreeding) + +export const NUSHELL = "../../../../.nushell" diff --git a/bins/inbreeding/inspect.nu b/bins/inbreeding/src/.nushell/inspect.nu similarity index 100% rename from bins/inbreeding/inspect.nu rename to bins/inbreeding/src/.nushell/inspect.nu diff --git a/bins/inbreeding/list.nu b/bins/inbreeding/src/.nushell/list.nu similarity index 100% rename from bins/inbreeding/list.nu rename to bins/inbreeding/src/.nushell/list.nu diff --git a/bins/inbreeding/load.nu b/bins/inbreeding/src/.nushell/load.nu similarity index 98% rename from bins/inbreeding/load.nu rename to bins/inbreeding/src/.nushell/load.nu index 8581c85b11182e1163326e3b2aeda536c26179b4..d410a90ab6eb787a4ccfd7d96a2982920b01e533 100644 --- a/bins/inbreeding/load.nu +++ b/bins/inbreeding/src/.nushell/load.nu @@ -1,7 +1,7 @@ use consts.nu use parse.nu [ "parse arg-experiment", "parse experiment" ] use path.nu [ "remove-cache-prefix" ] -use ../../.nushell error "error throw" +use $consts.NUSHELL error "error throw" use list.nu diff --git a/bins/inbreeding/parse.nu b/bins/inbreeding/src/.nushell/parse.nu similarity index 100% rename from bins/inbreeding/parse.nu rename to bins/inbreeding/src/.nushell/parse.nu diff --git a/bins/inbreeding/path.nu b/bins/inbreeding/src/.nushell/path.nu similarity index 100% rename from bins/inbreeding/path.nu rename to bins/inbreeding/src/.nushell/path.nu diff --git a/bins/inbreeding/plot.nu b/bins/inbreeding/src/.nushell/plot.nu similarity index 97% rename from bins/inbreeding/plot.nu rename to bins/inbreeding/src/.nushell/plot.nu index 6b26713120c42a4f1a29c425f362e7761808f3da..4405a12b22f49e649593777a953c4e4761ca4575 100644 --- a/bins/inbreeding/plot.nu +++ b/bins/inbreeding/src/.nushell/plot.nu @@ -1,9 +1,9 @@ use std repeat use consts.nu -use ../../.nushell plot gplt -use ../../.nushell color * -use ../../.nushell error "error throw" +use $consts.NUSHELL plot gplt +use $consts.NUSHELL color * +use $consts.NUSHELL error "error throw" def "parse strategy" []: string -> record<type: string> { let s = $in diff --git a/bins/inbreeding/run.nu b/bins/inbreeding/src/.nushell/run.nu similarity index 98% rename from bins/inbreeding/run.nu rename to bins/inbreeding/src/.nushell/run.nu index 59610af7b8770d6a6adae1d83d24af0b3f0a6d26..bd0d37c0ff3ee055c50e54afaa279fcd78340a3d 100644 --- a/bins/inbreeding/run.nu +++ b/bins/inbreeding/src/.nushell/run.nu @@ -1,5 +1,5 @@ use consts.nu -use ../../.nushell error "error throw" +use $consts.NUSHELL error "error throw" const VALID_HEX_CHARS = "abcdefABCDEF0123456789" diff --git a/bins/inbreeding/watch.nu b/bins/inbreeding/src/.nushell/watch.nu similarity index 100% rename from bins/inbreeding/watch.nu rename to bins/inbreeding/src/.nushell/watch.nu