mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-21 21:04:41 +01:00
jrnl: some add aliases
This commit is contained in:
parent
aaec1f1f78
commit
d425621e01
|
@ -1,4 +1,3 @@
|
||||||
#![feature(iter_collect_into)]
|
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use std::{fs, io, path::PathBuf};
|
use std::{fs, io, path::PathBuf};
|
||||||
|
|
||||||
|
@ -24,9 +23,8 @@ struct Cli {
|
||||||
enum Command {
|
enum Command {
|
||||||
#[command(aliases = ["l", "ls", "list"])]
|
#[command(aliases = ["l", "ls", "list"])]
|
||||||
ListEntries,
|
ListEntries,
|
||||||
Add {
|
#[command(aliases = ["a", "add-entry"])]
|
||||||
title: Option<String>,
|
Add { title: Option<String> },
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> io::Result<()> {
|
fn main() -> io::Result<()> {
|
||||||
|
|
Loading…
Reference in a new issue