Skip to content

Commit

Permalink
feat(cli): add minimal clap commands
Browse files Browse the repository at this point in the history
- exposes version and simple help
  • Loading branch information
robertpsoane committed Jun 27, 2024
1 parent 9587047 commit 50f2f97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[package]
name = "ducker"
description = "A slightly quackers Docker TUI based on k9s."
description = "A slightly quackers Docker TUI based on k9s 🦆"
authors = ["Robert Soane"]
version = "0.0.2"
homepage = "http://github.com/robertpsoane/ducker"
repository = "http://github.com/robertpsoane/ducker"
edition = "2021"
readme = "README.md"
license-file = "LICENSE"
license-file = "LICENSE.txt"
keywords = ["docker", "developer-tools", "ratatui", "terminal"]
categories = ["command-line-utilities", "development-tools"]

include = ["/src", "LICENSE", "README.md"]

[dependencies]
Expand All @@ -33,6 +32,7 @@ tokio = { version = "1.38.0", features = [
] }
tui-big-text = "0.4.5"


[profile.release]
strip = true
lto = true
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ mod components {
pub mod terminal;

#[derive(Parser, Debug)]
struct Args {
#[arg(short, long, default_value_t = String::from("unix:///var/run/docker.sock"))]
docker_daemon: String,
}
#[command(version, about, long_about = None)]
struct Args {}

#[tokio::main]
async fn main() -> color_eyre::Result<()> {
Args::parse();

terminal::init_panic_hook();
let mut terminal = terminal::init().context("failed to initialise terminal")?;

Expand Down

0 comments on commit 50f2f97

Please sign in to comment.