Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add minimal clap commands #6

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading