tui-piechart 1.4.5

A customizable pie chart widget for Ratatui TUI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env nu
# Prints the current workspace version from Cargo.toml.
# Usage: nu scripts/version.nu

export def read_version [] {
    cargo_version (open Cargo.toml)
}

# The version of a parsed Cargo.toml: `[workspace.package]` (a workspace) or
# `[package]` (a single crate at the root).
export def cargo_version [cargo: record]: nothing -> string {
    let ws = $cargo | get -o workspace.package.version
    if $ws != null { $ws } else { $cargo | get package.version }
}

def main [] { print (read_version) }