5 Commits

Author SHA1 Message Date
43b30a54b3 chore: bump version to 0.1.1 2025-12-28 15:00:57 +01:00
a81bacce10 chore: fix all compiler warnings
Add #[allow(dead_code)] to unused but potentially useful methods:
- config: save()
- filter: apps_only(), active_prefix()
- providers: name(), search(), is_dmenu_mode(), available_providers()
- dmenu: is_enabled()
- uuctl: ServiceState struct
- result_row: ResultRow struct

Prefix unused variables with underscore in main_window.rs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 15:00:30 +01:00
26d8bab34d chore: update PKGBUILD to follow Rust guidelines, use b2sums 2025-12-28 14:49:39 +01:00
01f09b26ff fix: skip tag creation if tag already exists 2025-12-28 14:43:08 +01:00
0daacebca5 fix: handle same-version bump gracefully in justfile 2025-12-28 14:42:32 +01:00
10 changed files with 28 additions and 6 deletions

2
Cargo.lock generated
View File

@@ -859,7 +859,7 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
[[package]]
name = "owlry"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"clap",
"dirs",

View File

@@ -1,6 +1,6 @@
[package]
name = "owlry"
version = "0.1.0"
version = "0.1.1"
edition = "2024"
rust-version = "1.90"
description = "A lightweight, owl-themed application launcher for Wayland"

View File

@@ -49,6 +49,10 @@ show-version:
bump new_version:
#!/usr/bin/env bash
set -euo pipefail
if [ "{{version}}" = "{{new_version}}" ]; then
echo "Version is already {{new_version}}, skipping bump"
exit 0
fi
echo "Bumping version from {{version}} to {{new_version}}"
sed -i 's/^version = ".*"/version = "{{new_version}}"/' Cargo.toml
cargo check
@@ -60,6 +64,10 @@ bump new_version:
tag:
#!/usr/bin/env bash
set -euo pipefail
if git rev-parse "v{{version}}" >/dev/null 2>&1; then
echo "Tag v{{version}} already exists, skipping"
exit 0
fi
echo "Creating tag v{{version}}"
git tag -a "v{{version}}" -m "Release v{{version}}"
git push origin "v{{version}}"
@@ -71,13 +79,16 @@ aur-update:
set -euo pipefail
cd "{{aur_dir}}"
url="https://somegit.dev/Owlibou/owlry"
echo "Updating PKGBUILD to version {{version}}"
sed -i 's/^pkgver=.*/pkgver={{version}}/' PKGBUILD
sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD
# Update checksums
# Update checksums (b2sums)
echo "Updating checksums..."
updpkgsums
b2sum=$(curl -sL "$url/archive/v{{version}}.tar.gz" | b2sum | cut -d' ' -f1)
sed -i "s/^b2sums=.*/b2sums=('$b2sum')/" PKGBUILD
# Generate .SRCINFO
echo "Generating .SRCINFO..."

View File

@@ -182,6 +182,7 @@ impl Config {
Ok(config)
}
#[allow(dead_code)]
pub fn save(&self) -> Result<(), Box<dyn std::error::Error>> {
let path = Self::config_path().ok_or("Could not determine config path")?;

View File

@@ -56,6 +56,7 @@ impl ProviderFilter {
}
/// Default filter: apps only
#[allow(dead_code)]
pub fn apps_only() -> Self {
Self {
enabled: HashSet::from([ProviderType::Application]),
@@ -115,6 +116,7 @@ impl ProviderFilter {
}
/// Get current active prefix if any
#[allow(dead_code)]
pub fn active_prefix(&self) -> Option<ProviderType> {
self.active_prefix
}

View File

@@ -37,6 +37,7 @@ impl DmenuProvider {
self.enabled = true;
}
#[allow(dead_code)]
pub fn is_enabled(&self) -> bool {
self.enabled
}

View File

@@ -14,6 +14,7 @@ use fuzzy_matcher::skim::SkimMatcherV2;
/// Represents a single searchable/launchable item
#[derive(Debug, Clone)]
pub struct LaunchItem {
#[allow(dead_code)]
pub id: String,
pub name: String,
pub description: Option<String>,
@@ -58,6 +59,7 @@ impl std::fmt::Display for ProviderType {
/// Trait for all search providers
pub trait Provider: Send {
#[allow(dead_code)]
fn name(&self) -> &str;
fn provider_type(&self) -> ProviderType;
fn refresh(&mut self);
@@ -98,6 +100,7 @@ impl ProviderManager {
manager
}
#[allow(dead_code)]
pub fn is_dmenu_mode(&self) -> bool {
self.providers
.iter()
@@ -110,6 +113,7 @@ impl ProviderManager {
}
}
#[allow(dead_code)]
pub fn search(&self, query: &str, max_results: usize) -> Vec<(LaunchItem, i64)> {
if query.is_empty() {
// Return recent/popular items when query is empty
@@ -197,6 +201,7 @@ impl ProviderManager {
}
/// Get all available provider types (for UI tabs)
#[allow(dead_code)]
pub fn available_providers(&self) -> Vec<ProviderType> {
self.providers.iter().map(|p| p.provider_type()).collect()
}

View File

@@ -9,6 +9,7 @@ pub struct UuctlProvider {
}
/// Represents the state of a systemd service
#[allow(dead_code)]
#[derive(Debug, Clone)]
pub struct ServiceState {
pub unit_name: String,

View File

@@ -505,8 +505,8 @@ impl MainWindow {
let results_list = self.results_list.clone();
let scrolled = self.scrolled.clone();
let search_entry = self.search_entry.clone();
let current_results = self.current_results.clone();
let config = self.config.clone();
let _current_results = self.current_results.clone();
let _config = self.config.clone();
let filter = self.filter.clone();
let filter_buttons = self.filter_buttons.clone();
let mode_label = self.mode_label.clone();

View File

@@ -2,6 +2,7 @@ use crate::providers::LaunchItem;
use gtk4::prelude::*;
use gtk4::{Box as GtkBox, Image, Label, ListBoxRow, Orientation};
#[allow(dead_code)]
pub struct ResultRow {
row: ListBoxRow,
}