Git Product home page Git Product logo

tinygo-autocmpl's Introduction

tinygo-autocmpl

tinygo-autocmpl adds bash/zsh/clink completion to tinygo

tinygo-autocmpl only support bash, zsh and clink at the moment, but other shells like fish should be able to do the same.
Your contributions are welcome.

Description

tinygo-autocmpl

You can easily try tinygo-autocmpl with GitHub Codespaces.

codespace

Usage

You can enable autocompletion by setting the following to ~/.bashrc etc.

# bash
$ eval "$(tinygo-autocmpl --completion-script-bash)"

# zsh
$ eval "$(tinygo-autocmpl --completion-script-zsh)"

# clink (windows)
$ tinygo-autocmpl --completion-script-clink > %LOCALAPPDATA%\clink\tinygo.lua

You can customize the auto-completion of the -target flag in the following way
This allows you to use only your own targets, for example.

$ cat ~/.tinygo.targets
feather-m4
xiao

$ eval "$(tinygo-autocmpl --targets ~/.tinygo.targets --completion-script-bash)"

$ tinygo flash --target
feather-m4  xiao

To add wioterminal to the autocompletion candidates, do this

$ echo wioterminal >> ~/.tinygo.targets

$ cat ~/.tinygo.targets
feather-m4
xiao
wioterminal

$ tinygo flash --target
feather-m4   wioterminal  xiao

Installation

go install github.com/sago35/tinygo-autocmpl@latest

or

download from https://github.com/sago35/tinygo-autocmpl/releases/latest

or

download from GitHub Actions

Environment

  • go

I tested tinygo-autocmpl in the following environments.

Notice

This project uses goreleaser for release

LICENSE

MIT

Author

sago35 - [email protected]

tinygo-autocmpl's People

Stargazers

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

Watchers

 avatar  avatar

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.