pingrep 25.3.0

A command-line tool to quickly and easily search through your Pinboard bookmarks locally
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::cli::Context;
use crate::errors::*;
use clap::Parser;
use snafu::ResultExt;

/// Open a given bookmark in a web browser
#[derive(Parser)]
pub struct Args {
    /// The bookmark to open
    url: String,
}

pub fn command(_ctx: Context, args: Args) -> WhateverResult<()> {
    open::that_detached(args.url).whatever_context("Unable to open URL")
}