File tree 4 files changed +45
-10
lines changed
4 files changed +45
-10
lines changed Original file line number Diff line number Diff line change
1
+ use nix
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Use `just <recipe>` to run a recipe
2
+ # https://just.systems/man/en/
3
+
4
+ # By default, run the `--list` command
5
+ default :
6
+ @ just --list
7
+
8
+ # Variables
9
+
10
+ transferDir := ` if [ -d " $HOME /NextcloudPrivate/Transfer" ]; then echo " $HOME /NextcloudPrivate/Transfer" ; else echo " $HOME /Nextcloud/Transfer" ; fi `
11
+
12
+ # Apply the patch to the qownnotes-scripts repository
13
+ [group (' patch' )]
14
+ git-apply-patch :
15
+ git apply {{ transferDir }} / qownnotes-scripts.patch
16
+
17
+ # Create a patch from the staged changes in the qownnotes-scripts repository
18
+ [group (' patch' )]
19
+ @ git-create-patch :
20
+ echo " transferDir: {{ transferDir }} "
21
+ git diff --no-ext-diff --staged --binary > {{ transferDir }} / qownnotes-scripts.patch
22
+ ls -l1t {{ transferDir }} / | head -2
23
+
24
+ # Test the qownnotes-scripts repository
25
+ [group (' test' )]
26
+ @ test :
27
+ php ./ .github/ workflows/ scripts/ run-tests.php
28
+
29
+ # Format all justfiles
30
+ [group (' linter' )]
31
+ just-format :
32
+ #!/usr/bin/env bash
33
+ # Find all files named "justfile" recursively and run just --fmt --unstable on them
34
+ find . -type f -name " justfile" -print0 | while IFS= read -r -d ' ' file; do
35
+ echo " Formatting $file"
36
+ just --fmt --unstable -f " $file"
37
+ done
Original file line number Diff line number Diff line change
1
+ { pkgs ? import <nixpkgs> { } } :
2
+ pkgs . mkShell {
3
+ nativeBuildInputs = with pkgs ; [
4
+ php
5
+ just
6
+ ] ;
7
+ }
You can’t perform that action at this time.
0 commit comments