Skip to content

Commit 8649739

Browse files
committed
feat: update dependencies, refactor user management, and enhance CLI options
1 parent 5f453cc commit 8649739

14 files changed

Lines changed: 363 additions & 466 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
# we specify bash to get pipefail; it guards against the `curl` command
6464
# failing. otherwise `sh` won't catch that `curl` returned non-0
6565
shell: bash
66-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.1/cargo-dist-installer.sh | sh"
66+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.28.2/cargo-dist-installer.sh | sh"
6767
- name: Cache dist
6868
uses: actions/upload-artifact@v4
6969
with:
@@ -288,7 +288,7 @@ jobs:
288288
steps:
289289
- uses: actions/checkout@v4
290290
with:
291-
repository: "km0e"
291+
repository: "km0e/homebrew-tap"
292292
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
293293
# So we have access to the formula
294294
- name: Fetch homebrew formulae

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Version 0.1.0-alpha.0 (2025-04-16)
1+
# Version 0.1.0-alpha (2025-07-27)
22

33
This is the first alpha release of the project. It includes the following features:
44

55
- Synchronization of files between local and remote directories.
6-
- Basic autostart functionality.
76
- Execution of commands on local and remote machines.
87
- Package management for installing packages.
8+
- Basic dotfile management for managing dotfiles.

Cargo.toml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
name = "dv4lua"
33
version = "0.1.0"
44
edition = "2024"
5-
65
description = "a lua-based command line tool that provides abstract user (device) interoperability"
76
authors = ["km0e <kmdr.error@gmail.com>"]
87
repository = "https://github.com/km0e/dv4lua.git"
9-
8+
homepage = "https://blog.101248.xyz/zh/dv4lua/"
109

1110
[package.metadata.wix]
1211
upgrade-guid = "EE2C9595-12ED-48A2-BC03-E920E3E35D71"
@@ -16,30 +15,17 @@ eula = false
1615

1716
[dependencies]
1817
clap = { version = "4.5", features = ["derive"] }
18+
dv-wrap = { git = "https://github.com/km0e/dv-api", features = ["full"] }
19+
dv-api = { git = "https://github.com/km0e/dv-api", features = ["full"] }
1920
home = { version = "0.5" }
21+
mlua = { version = "0.11", features = ["async", "lua54", "vendored"] }
22+
os2 = { version = "0.1.0", features = ["serde"] }
2023
serde = { version = "1.0", features = ["derive"] }
21-
22-
# dv-wrap = { git = "https://github.com/km0e/dv-api", features = ["full"] }
23-
# dv-api = { git = "https://github.com/km0e/dv-api", features = ["full"] }
24-
# os2 = { git = "https://github.com/km0e/dv-api", features = ["serde"] }
25-
26-
dv-wrap = { path = "../dv-api/dv-wrap", features = ["full"] }
27-
dv-api = { path = "../dv-api/dv-api/", features = ["full"] }
28-
os2 = { path = "../dv-api/os2/", features = ["serde"] }
29-
24+
thiserror = "2.0"
25+
tokio = { version = "1.46", features = ["rt-multi-thread", "macros"] }
3026
tracing = { version = "0.1" }
3127
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
3228

33-
tokio = { version = "1.46", features = [
34-
"fs",
35-
"io-std",
36-
"rt-multi-thread",
37-
"macros",
38-
] }
39-
40-
mlua = { version = "0.11", features = ["async", "lua54", "vendored"] }
41-
thiserror = "2.0"
42-
4329
# The profile that 'dist' will build with
4430
[profile.dist]
4531
inherits = "release"

dist-workspace.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ members = ["cargo:."]
44
# Config for 'dist'
55
[dist]
66
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7-
cargo-dist-version = "0.28.1"
7+
cargo-dist-version = "0.28.2"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app
1111
installers = ["shell", "powershell", "homebrew", "msi"]
1212
# A GitHub repo to push Homebrew formulas to
13-
tap = "km0e"
13+
tap = "km0e/homebrew-tap"
1414
# Target platforms to build apps for (Rust target-triple syntax)
15-
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
15+
targets = [
16+
"aarch64-apple-darwin",
17+
"aarch64-unknown-linux-gnu",
18+
"x86_64-unknown-linux-gnu",
19+
"x86_64-unknown-linux-musl",
20+
"x86_64-pc-windows-msvc",
21+
]
1622
# Path that installers should place binaries in
1723
install-path = "CARGO_HOME"
1824
# Publish jobs to run in CI

src/arg.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ fn default_config() -> PathBuf {
1010
#[derive(Parser, Debug)]
1111
#[command(version = env!("CARGO_PKG_VERSION"), about = "Simple CLI to use dv-api with lua")]
1212
pub struct Cli {
13-
#[arg(short = 'b', long, help = "Default is $directory/.cache")]
13+
#[arg(short = 'b', long, help = "cache database path")]
1414
pub dbpath: Option<PathBuf>,
1515
#[arg(short, long, help = "The config file to use")]
1616
pub config: Option<PathBuf>,
17-
#[arg(short, long, default_value_os_t = default_config())]
17+
#[arg(short, long, help = "The directory to use for the config and cache",
18+
default_value_os_t = default_config())]
1819
pub directory: PathBuf,
1920
#[arg(
2021
short = 'n',

0 commit comments

Comments
 (0)