From 14e3caca1b39dd243e15c2bba06f59bce00678c4 Mon Sep 17 00:00:00 2001 From: Sean Wilbur Date: Tue, 9 Sep 2025 16:07:58 -0500 Subject: [PATCH] Adding more commands of value. --- .justfile | 11 ++++++++--- install.sh | 13 +------------ pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.justfile b/.justfile index 4b0e64f..2572905 100644 --- a/.justfile +++ b/.justfile @@ -1,8 +1,13 @@ # set dotenv-load := true set shell := ["bash","-eu","-o","pipefail","-c"] +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 + setup: rye sync - -run: - rye run ansible localhost -m ansible.builtin.setup diff --git a/install.sh b/install.sh index 4bc2823..8c27ea9 100755 --- a/install.sh +++ b/install.sh @@ -2,16 +2,8 @@ # system dependencies sudo apt update -sudo apt install -y git +sudo apt install -y git inxi just dmidecode -# Install just if not found -if ! command -v just &> /dev/null -then - echo "just not found, installing..." - sudo apt install -y just -else - echo "just is already installed." -fi # Install rye if not found if ! command -v rye &> /dev/null @@ -29,6 +21,3 @@ else source "$HOME/.rye/env" fi fi - -# rye setup will manage python version and dependencies -rye sync \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ac6b360..52e4f06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "inspector" -version = "0.1.1" +version = "0.1.2" description = "System inspection routine." authors = [ { name = "Sean Wilbur", email = "sean@abutili.com" }