Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1671af82ee | ||
|
|
1b4f9c5c04 |
2 changed files with 9 additions and 11 deletions
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DL_DIR: /srv/breadway-dl
|
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
|
PATH: /home/breadway/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -45,12 +45,8 @@ jobs:
|
||||||
- name: ensure bread-ecosystem
|
- name: ensure bread-ecosystem
|
||||||
working-directory: /tmp
|
working-directory: /tmp
|
||||||
run: |
|
run: |
|
||||||
if [[ -d "${ECOSYSTEM_DIR}/.git" ]]; then
|
rm -rf "${ECOSYSTEM_DIR}"
|
||||||
git -C "${ECOSYSTEM_DIR}" pull --ff-only
|
|
||||||
else
|
|
||||||
mkdir -p "$(dirname "${ECOSYSTEM_DIR}")"
|
|
||||||
git clone https://github.com/Breadway/bread-ecosystem.git "${ECOSYSTEM_DIR}"
|
git clone https://github.com/Breadway/bread-ecosystem.git "${ECOSYSTEM_DIR}"
|
||||||
fi
|
|
||||||
|
|
||||||
- name: regenerate index.json
|
- name: regenerate index.json
|
||||||
working-directory: /tmp
|
working-directory: /tmp
|
||||||
|
|
|
||||||
10
src/main.rs
10
src/main.rs
|
|
@ -4,7 +4,11 @@ use std::process;
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[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 {
|
struct Cli {
|
||||||
/// Image file to set as wallpaper (shorthand for `set`)
|
/// Image file to set as wallpaper (shorthand for `set`)
|
||||||
path: Option<PathBuf>,
|
path: Option<PathBuf>,
|
||||||
|
|
@ -16,9 +20,7 @@ struct Cli {
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
enum Command {
|
enum Command {
|
||||||
/// Set wallpaper, generate pywal palette, and reload bread themes
|
/// Set wallpaper, generate pywal palette, and reload bread themes
|
||||||
Set {
|
Set { path: PathBuf },
|
||||||
path: PathBuf,
|
|
||||||
},
|
|
||||||
/// Print the current wallpaper path
|
/// Print the current wallpaper path
|
||||||
Get,
|
Get,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue