diff --git a/.gitignore b/.gitignore index e69de29..344f079 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +runs diff --git a/.justfile b/.justfile index 2572905..5e06f92 100644 --- a/.justfile +++ b/.justfile @@ -1,13 +1,17 @@ # set dotenv-load := true set shell := ["bash","-eu","-o","pipefail","-c"] +NOW := `date +%Y%m%d%H%M%S` + run: setup - ts=$(date '+%FT%TZ') - mkdir -p "runs/${ts}" - cd ${ts} - sudo dmidecode > dmidecode - rye run ansible localhost -m ansible.builtin.setup > ansible.builtin.setup.json - inxi --expanded > inxi.expanded + mkdir -p "runs/{{ NOW }}" + cd "runs/{{ NOW }}" + sudo dmidecode > "runs/{{ NOW }}/dmidecode" + rye run ansible localhost -m ansible.builtin.setup > "runs/{{ NOW }}/ansible.builtin.setup.json" + inxi --full > "runs/{{ NOW }}/inxi.expanded" setup: rye sync + +clean: + rm -rf runs \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 52e4f06..6b5da65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "inspector" -version = "0.1.2" +version = "0.1.3" description = "System inspection routine." authors = [ { name = "Sean Wilbur", email = "sean@abutili.com" }