Giter Site home page Giter Site logo

bettercallshao / kwt Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 1.0 139 KB

Run commands easily.

License: MIT License

Makefile 1.93% Go 77.68% JavaScript 15.83% HTML 4.56%
golang cli automation full-stack gin-gonic websocket gorilla business-solutions yaml template

kwt's People

Contributors

bettercallshao avatar dependabot[bot] avatar shamzn avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

biswajit1983

kwt's Issues

panic: runtime error: index out of range [1] with length 1

Hi there. I just update to last kwt version v0.6.4-20230901235817 (Windows build) and i'm getting this error when i start some command. Previous version works good.

goroutine 1 [running]:
main.act(0xc0001e24c0)
        /home/circleci/project/kwt/cmd/kwt/standalone.go:89 +0x636
github.com/urfave/cli/v2.(*Command).Run(0xc0001a8160, 0xc0001e24c0, {0xc0001e86b0, 0x1, 0x1})
        /home/circleci/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:274 +0x9eb
github.com/urfave/cli/v2.(*Command).Run(0xc0001a8420, 0xc0001e2400, {0xc000061e80, 0x2, 0x2})
        /home/circleci/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xc4d
github.com/urfave/cli/v2.(*Command).Run(0xc0001a91e0, 0xc0001e22c0, {0xc000036080, 0x3, 0x4})
        /home/circleci/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xc4d
github.com/urfave/cli/v2.(*App).RunContext(0xc0001ea000, {0xaa2408?, 0xc00001c0d8}, {0xc000036080, 0x3, 0x4})
        /home/circleci/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
        /home/circleci/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:309
main.main()
        /home/circleci/project/kwt/cmd/kwt/main.go:168 +0x98d

Customize command shortcuts

Hi there. I wonder if it's possible to add an option to customize the keyboard shortcuts for the custom commands in the yaml. Actually the program auto chooses the first letter of the name and if the letter is already taken by another command it will chooses the second one and so on. It would be greate to have an option which allows to customize it, even to choose multiple letters as shortcut. For example: i use it very much with scoop. The first s of the name "scoop" is already taken by the program for the start command so it will auto chooses the second letter "c". With the ability to customize it using multiple letters i could configure it as "sc" for example so all the scoop's commands starts with

kwt sc ...

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.