parent
bd35993adc
commit
bb208bea31
@ -0,0 +1,14 @@ |
|||||||
|
# photo 🔷 tool |
||||||
|
|
||||||
|
A small tool to import and export photos from darktable collections. |
||||||
|
|
||||||
|
|
||||||
|
## How to build |
||||||
|
|
||||||
|
Use [Nix](https://nixos.org)! |
||||||
|
|
||||||
|
```console |
||||||
|
$ nix-build |
||||||
|
$ result/bin/pt |
||||||
|
``` |
||||||
|
|
@ -0,0 +1,22 @@ |
|||||||
|
#!/usr/bin/env raku |
||||||
|
|
||||||
|
# Define a str type of path |
||||||
|
# TODO: validate a path? |
||||||
|
subset path of Str; |
||||||
|
subset ID of Str; |
||||||
|
|
||||||
|
multi sub MAIN("--version") |
||||||
|
{ |
||||||
|
say "pt-import 0.1.0" |
||||||
|
} |
||||||
|
|
||||||
|
multi sub MAIN( |
||||||
|
$src, #= Source of image data (on SD card) |
||||||
|
$store, #= Directory of darktable collections |
||||||
|
ID :$start-id, #= The start image ID to import |
||||||
|
ID :$end-Id, #= The end image ID to import |
||||||
|
Bool :$verbose, #= Display verbose output |
||||||
|
) |
||||||
|
{ |
||||||
|
say "execute main function" |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
with import <nixpkgs> {}; |
||||||
|
|
||||||
|
stdenv.mkDerivation { |
||||||
|
name = "raku"; |
||||||
|
buildInputs = with pkgs; [ rakudo ]; |
||||||
|
} |
Loading…
Reference in new issue