File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Automatically sets up your devbox environment whenever you cd into this
2- # directory via our direnv integration:
3-
41eval " $( devbox generate direnv --print-envrc) "
52
63
7- # export CARGO_HOME="/env/cargo"
84export ENVNAME=rust
9- # export PATH="$PWD/target/debug:$PATH"
105unset GITHUB_TOKEN
116
12- export_alias build ' cd $(git rev-parse --show-toplevel) && cargo build --release'
13- export_alias run ' cd $(git rev-parse --show-toplevel) && cargo run -q'
14- # export_alias run '$(git rev-parse --show-toplevel)/target/debug/$(basename $(git rev-parse --show-toplevel)) $@'
15- # export_alias run '$(git rev-parse --show-toplevel)/target/debug/rc'
7+ export PATH=$PATH :$PWD
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 0.1.7] - 2025-04-25
4+
5+ ### <!-- 0 --> ⛰️ Features
6+
7+ - Refactor item selection and improve user interaction in app
8+ - Enhance machine selection and user interaction in TUI
9+ - Refactor machine listing command and implement table formatting
10+
11+ ### <!-- 1 --> 🐛 Bug Fixes
12+
13+ - Cleanup stupid staff
14+
15+ ### <!-- 2 --> 🚜 Refactor
16+
17+ - Machine command and help message in mod.rs and list.rs
18+ - Refactor machine addition functionality
19+ - Refactor code for improved readability and maintainability
20+ - Refactor and add traits to Host and Machine structs
21+ - Refactor machine handling and add TOML support
22+ - Refactor code for improved readability and maintainability
23+
24+ ### <!-- 7 --> ⚙️ Miscellaneous Tasks
25+
26+ - Refactor command handling and improve environment integration
27+ - Refactor devbox configuration for improved build process
28+ - Refactor machine listing and table generation
29+ - Update widget appearance in UI
30+ - Add ` regex ` dependency with version ` 1.10.5 ` to ` Cargo.toml `
31+
32+ ### Refractor
33+
34+ - Refactor machine command and methods in Machines
35+ - Update tabled crate and refactor handle function
36+
337## [ 0.1.6] - 2024-06-24
438
539### <!-- 0 --> ⛰️ Features
Original file line number Diff line number Diff line change 11[package ]
22name = " devpilot"
33authors = [" Trim Bresilla <trim.bresilla@gmail.com>" ]
4- version = " 0.1.6 "
4+ version = " 0.1.7 "
55edition = " 2021"
66license = " MIT"
77
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Function to display usage
4+ usage () {
5+ echo " Usage: $0 <major|minor|patch>"
6+ exit 1
7+ }
8+
9+ # Check if argument is provided
10+ if [ $# -ne 1 ]; then
11+ usage
12+ fi
13+
14+ # Get current version from Cargo.toml
15+ CURRENT_VERSION=$( grep ' ^version = ' Cargo.toml | sed -E ' s/version = "(.*)"/\1/' )
16+
17+ # Split version into components
18+ IFS=' .' read -r MAJOR MINOR PATCH <<< " $CURRENT_VERSION"
19+
20+ # Update version based on argument
21+ case $1 in
22+ major)
23+ MAJOR=$(( MAJOR + 1 ))
24+ MINOR=0
25+ PATCH=0
26+ ;;
27+ minor)
28+ MINOR=$(( MINOR + 1 ))
29+ PATCH=0
30+ ;;
31+ patch)
32+ PATCH=$(( PATCH + 1 ))
33+ ;;
34+ * )
35+ usage
36+ ;;
37+ esac
38+
39+ # Create new version string
40+ NEW_VERSION=" $MAJOR .$MINOR .$PATCH "
41+
42+ # Update version in Cargo.toml
43+ sed -i " s/^version = \" .*\" /version = \" $NEW_VERSION \" /" Cargo.toml
44+
45+ echo " Version bumped from $CURRENT_VERSION to $NEW_VERSION "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+
4+ # @cmd build cargo project
5+ # @alias b
6+ build () {
7+ cargo build --release
8+ }
9+
10+
11+ # @cmd mark as releaser
12+ # @alias r
13+ # @arg type![patch|minor|major] Release type
14+ release () {
15+ # echo "release $1"
16+ CURRENT_VERSION=$( grep ' ^version = ' Cargo.toml | sed -E ' s/version = "(.*)"/\1/' )
17+ IFS=' .' read -r MAJOR MINOR PATCH <<< " $CURRENT_VERSION"
18+ echo $argc_type
19+ case $argc_type in
20+ major)
21+ MAJOR=$(( MAJOR + 1 ))
22+ MINOR=0
23+ PATCH=0
24+ ;;
25+ minor)
26+ MINOR=$(( MINOR + 1 ))
27+ PATCH=0
28+ ;;
29+ patch)
30+ PATCH=$(( PATCH + 1 ))
31+ ;;
32+ esac
33+ NEW_VERSION=" $MAJOR .$MINOR .$PATCH "
34+ sed -i " s/^version = \" .*\" /version = \" $NEW_VERSION \" /" Cargo.toml
35+ git cliff --tag $NEW_VERSION > CHANGELOG.md
36+ changelog=$( git cliff --unreleased --strip all)
37+ git add -A && git commit -m " chore(release): prepare for $version "
38+ echo " $changelog "
39+ git tag -a $version -m " $version " -m " $changelog "
40+ git push --follow-tags --force --set-upstream origin develop
41+ gh release create $version --notes " $changelog "
42+ }
43+
44+
45+ # @cmd compile mdbook
46+ # @alias m
47+ # @option --dest_dir <dir> Destination directory
48+ # @flag --monitor Monitor after upload
49+ mdbook () {
50+ mdbook build book --dest-dir ../docs
51+ git add -A && git commit -m " docs: building website/mdbook"
52+ }
53+
54+
55+ eval " $( argc --argc-eval " $0 " " $@ " ) "
You can’t perform that action at this time.
0 commit comments