{"id":16219981,"url":"https://github.com/sago35/tinygo-autocmpl","last_synced_at":"2025-03-19T11:30:50.120Z","repository":{"id":57543347,"uuid":"291390569","full_name":"sago35/tinygo-autocmpl","owner":"sago35","description":"adds bash/zsh/clink completion to tinygo","archived":false,"fork":false,"pushed_at":"2025-01-24T13:51:14.000Z","size":274,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T17:04:20.692Z","etag":null,"topics":["bash","completion","tinygo","zsh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sago35.png","metadata":{"files":{"readme":"README.md","changelog":"Changes.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-30T03:07:23.000Z","updated_at":"2025-01-25T13:26:28.000Z","dependencies_parsed_at":"2024-10-27T20:31:59.037Z","dependency_job_id":"373fbdd1-5b8f-429e-9109-4d259bf07c01","html_url":"https://github.com/sago35/tinygo-autocmpl","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinygo-autocmpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinygo-autocmpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinygo-autocmpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sago35%2Ftinygo-autocmpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sago35","download_url":"https://codeload.github.com/sago35/tinygo-autocmpl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243985836,"owners_count":20379213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","completion","tinygo","zsh"],"created_at":"2024-10-10T11:56:44.071Z","updated_at":"2025-03-19T11:30:49.817Z","avatar_url":"https://github.com/sago35.png","language":"Go","funding_links":[],"categories":["Completions","Code Editing"],"sub_categories":["ZSH on Windows"],"readme":"# tinygo-autocmpl\n\n`tinygo-autocmpl` adds bash/zsh/clink completion to tinygo  \n\n`tinygo-autocmpl` only support bash, zsh and clink at the moment, but other shells like fish should be able to do the same.  \nYour contributions are welcome.  \n\n## Description\n\n![tinygo-autocmpl](tinygo-autocmpl.gif)\n\nYou can easily try `tinygo-autocmpl` with `GitHub Codespaces`.  \n\n![codespace](codespace.png)\n\n## Usage\n\nYou can enable autocompletion by setting the following to `~/.bashrc` etc.  \n\n```\n# bash\n$ eval \"$(tinygo-autocmpl --completion-script-bash)\"\n\n# zsh\n$ eval \"$(tinygo-autocmpl --completion-script-zsh)\"\n\n# clink (windows)\n$ tinygo-autocmpl --completion-script-clink \u003e %LOCALAPPDATA%\\clink\\tinygo.lua\n```\n\nYou can customize the auto-completion of the -target flag in the following way  \nThis allows you to use only your own targets, for example.  \n\n```\n$ cat ~/.tinygo.targets\nfeather-m4\nxiao\n\n$ eval \"$(tinygo-autocmpl --targets ~/.tinygo.targets --completion-script-bash)\"\n\n$ tinygo flash --target\nfeather-m4  xiao\n```\n\nTo add wioterminal to the autocompletion candidates, do this\n\n```\n$ echo wioterminal \u003e\u003e ~/.tinygo.targets\n\n$ cat ~/.tinygo.targets\nfeather-m4\nxiao\nwioterminal\n\n$ tinygo flash --target\nfeather-m4   wioterminal  xiao\n```\n\n## Installation\n\n```\ngo install github.com/sago35/tinygo-autocmpl@latest\n```\n\nor\n\ndownload from https://github.com/sago35/tinygo-autocmpl/releases/latest\n\nor \n\ndownload from [GitHub Actions](https://github.com/sago35/tinygo-autocmpl/actions)\n\n### Environment\n\n* go\n\nI tested tinygo-autocmpl in the following environments.\n\n* ubuntu\n    * bash\n    * zsh\n* windows\n    * bash (git for windows)\n    * clink (https://mridgers.github.io/clink/)\n\n## Notice\n\nThis project uses [goreleaser](https://goreleaser.com/) for release\n\n## LICENSE\n\nMIT\n\n## Author\n\nsago35 - \u003csago35@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Ftinygo-autocmpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsago35%2Ftinygo-autocmpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsago35%2Ftinygo-autocmpl/lists"}