Compare commits

...

2 commits
v0.1.8 ... main

Author SHA1 Message Date
Breadway
1671af82ee fix: rustfmt violations
Some checks failed
Mirror to GitHub / mirror (push) Failing after 2s
2026-06-19 08:38:41 +08:00
Breadway
1b4f9c5c04 fix(ci): clone bread-ecosystem to /tmp to avoid stale permissions
Some checks failed
Mirror to GitHub / mirror (push) Failing after 2s
release / build (push) Successful in 18s
Build and publish package / package (push) Failing after 1m7s
2026-06-17 22:53:08 +08:00
2 changed files with 9 additions and 11 deletions

View file

@ -6,7 +6,7 @@ on:
env:
DL_DIR: /srv/breadway-dl
ECOSYSTEM_DIR: /home/breadway/Projects/bread-ecosystem
ECOSYSTEM_DIR: /tmp/bread-ecosystem-ci
PATH: /home/breadway/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
jobs:
@ -45,12 +45,8 @@ jobs:
- name: ensure bread-ecosystem
working-directory: /tmp
run: |
if [[ -d "${ECOSYSTEM_DIR}/.git" ]]; then
git -C "${ECOSYSTEM_DIR}" pull --ff-only
else
mkdir -p "$(dirname "${ECOSYSTEM_DIR}")"
rm -rf "${ECOSYSTEM_DIR}"
git clone https://github.com/Breadway/bread-ecosystem.git "${ECOSYSTEM_DIR}"
fi
- name: regenerate index.json
working-directory: /tmp

View file

@ -4,7 +4,11 @@ use std::process;
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "breadpaper", version, about = "Wallpaper manager for the bread desktop")]
#[command(
name = "breadpaper",
version,
about = "Wallpaper manager for the bread desktop"
)]
struct Cli {
/// Image file to set as wallpaper (shorthand for `set`)
path: Option<PathBuf>,
@ -16,9 +20,7 @@ struct Cli {
#[derive(Subcommand)]
enum Command {
/// Set wallpaper, generate pywal palette, and reload bread themes
Set {
path: PathBuf,
},
Set { path: PathBuf },
/// Print the current wallpaper path
Get,
}