Code Monkey home page Code Monkey logo

tui's Introduction

The paisano TUI / CLI

The Paisano TUI / CLI is a brandable general purpose command line kit for Flake based projects which fulfill a Paisano layout and importer contract.

Usage

  • Install Paisano: nix profile install github:paisano-nix/tui
  • Set up autocompletion (optional): paisano _carapace [SHELL] โ€” see carapace docs
  • Enter a Paisano-based repository.
  • Run paisano or paisano list and profit โœจ!

Branding

To change the branding of this binary you can set these variables via -X compile flag:

main.buildVersion | default: dev
main.buildCommit  | default: dirty
main.argv0        | default: paisano
main.project      | default: Paisano
flake.registry    | default: __std   # temp kept, mainly for `std-action`

Example: go build -o my-bin-name -ldflags="-X main.argv0=hive -X main.project=Hive"

Contributing

Prerequisites

You need nix and direnv.

Enter Contribution Environment
direnv allow
Change Contribution Environment
$EDITOR ./nix/repo/config.nix
direnv reload
Preview Documentation

You need to be inside the Contribution Environment.

mdbook build -o

tui's People

Contributors

blaggacao avatar nazarewk avatar pegasust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pegasust nazarewk

tui's Issues

Better error message on corrupt completion cache

The CLI completion cache may be corrupted.

It is not possibly to recover the cache itself synchronously on tab completion where latency sharp over 200ms degrades the responsiveness of the terminal.

But, we can recover from that failure mode with a better error message instructing the user to re-cache the CLI completion cache.

Revise eval system approach

tui/src/flake/run.go

Lines 105 to 116 in 3096bad

if c.System == currentSystem {
return nil, fmt.Errorf("set the --for flag to a different system than the current one ('%s')", currentSystem)
}
if c.System != "" {
// if system is set, the impure flag provides a "hack" so that we
// can transport this information to the action evaluation without
// incurring in a prohibitively complex (m*n) data structure in
// which we would have to account for _all_ combinations of current
// and build system
return []string{"--impure", c.renderFragmentFor(c.System)}, nil
}

Revise these lines after NixOS/nix#4093 is merged and stabilized

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.