MCPcopy Index your code
hub / github.com/MichalGniadek/klask

github.com/MichalGniadek/klask @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
78 symbols 120 edges 14 files 5 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

crates.io license docs.rs

Klask

Allows you to create a gui application automatically from clap (v3). Uses egui for graphics. Changelog

Features

  • Supports optional fields with and without default values
  • Supports flags with multiple occurrences (-vvv)
  • Has a native path picker
  • Supports fields with multiple values
  • Output is colored and has clickable links
  • Combo boxes for arguments with only some values allowed
  • Subcommands
  • Optionally allow setting environment variables, stdin and working directory
  • Progress bars

If you are using this library please contact me, I'm definitely interested! Create an Issue if you find any bugs or would like a feature added!

Example gui: image showcasing the gui

Generated from miniserve's app: image showcasing the gui

Core symbols most depended-on inside this repo

run_app
called by 3
src/lib.rs
is_child_running
called by 3
src/lib.rs
send
called by 3
src/output.rs
update_validation_error
called by 2
src/arg_state.rs
get_cmd_args
called by 2
src/arg_state.rs
progress_bar_with_id
called by 2
src/output.rs
ansi_color_to_egui
called by 2
src/output.rs
kill
called by 2
src/child_app.rs

Shape

Method 35
Function 20
Class 14
Enum 9

Languages

Rust100%

Modules by API surface

src/app_state/tests.rs16 symbols
src/lib.rs14 symbols
src/output.rs11 symbols
src/child_app.rs9 symbols
src/arg_state.rs7 symbols
src/app_state.rs5 symbols
examples/showcase.rs5 symbols
src/error.rs2 symbols
examples/empty.rs2 symbols
examples/custom_font.rs2 symbols
examples/additional.rs2 symbols
src/settings.rs1 symbols

For agents

$ claude mcp add klask \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact