autocomplete README

The project's README from github.com/withfig/autocomplete. As one markdown file: README.md.

Badge: macOS Badge: Documentation Badge: contributors

Amazon Q Developer CLI adds IDE-style completions for hundreds of popular CLIs like git, npm, docker, and aws. Start typing, and Amazon Q populates contextually relevant subcommands, options and arguments.

Amazon Q Developer CLI, formerly known as Fig, is open source. See aws/amazon-q-developer-cli to learn more.

⚡️ Installation

NOTE: Once it's downloaded, launch the app to set up Amazon Q for command line!


Demo of Amazon Q's CLI Completions in a terminal


👋 What are "completion specs"?

A completion spec is a declarative schema that specifies the subcommands, options and args for a CLI tool. Amazon Q uses these schemas to generate suggestions.


😎 Contribute your first spec in < 3 minutes

Use the steps below or follow our getting started guide: fig.io/docs

Prerequisites:


Steps

  1. Make sure you have pnpm installed, as that's the package manager used in this repo.

  2. Click here to fork this repo.

  3. Clone your forked repo and create an example spec

    # Replace `YOUR_GITHUB_USERNAME` with your own GitHub username
    git clone https://github.com/YOUR_GITHUB_USERNAME/autocomplete.git autocomplete
    cd autocomplete
    
    # Add withfig/autocomplete as a remote
    git remote add upstream https://github.com/withfig/autocomplete.git
    
    # Install packages
    pnpm install
    
    # Create an example spec (call it "abc")
    pnpm create-spec abc
    
    # Turn on "dev mode"
    pnpm dev
    
  4. Now go to your terminal and type abc[space]. Your example spec will appear. 😊

Other things to know


📦 Other available package.json commands

# Typecheck all specs in the src/ folder
pnpm test

# Compile typescripts specs from src/ folder to build/ folder
pnpm build

# Lint and fix issues
pnpm lint:fix

🔥 Contributions

We would love contributions for:

If you aren't able to contribute, please feel free to open an issue.

🙋‍♀️ FAQ

What terminals does Amazon Q work with?

Amazon Q for command line works with the native macOS Terminal app, iTerm, Tabby, Hyper, Kitty, WezTerm, and Alacritty. It also works in the integrated terminals of VSCode, JetBrains IDEs, Android Studio, and Nova.

Want to see another terminal included? Check our issue tracker and add your support for it!

How does Amazon Q for command line work?

Amazon Q for command line uses the Accessibility API on Mac to position the window, and integrates with your shell to read what you've typed.

Does Amazon Q for command line work on Windows or Linux?

Not yet, Amazon Q for command line is only available on macOS for now. Windows and Linux support is in progress!

How can I download Amazon Q?

Run brew install amazon-q or, downloading the app at aws.amazon.com. Then, launch the Amazon Q app!

How do I submit a PR?

Check out our How to Contribute guide. Many of Amazon Q's 400+ contributors made their first open source contribution to Amazon Q!

Amazon Q for command line doesn't work for me!

Run q doctor to automatically debug issues with your installation. Otherwise make an issue in our GitHub discussions community: aws/q-command-line-discussions


✨ Contributors

Grid of profile icons of the 400+ contributors

autocomplete (withfig/autocomplete)

Searching Database…

这是什么?一个终端里的 IDE 风格自动补全工具:当你输入命令时,Amazon Q Developer CLI(原名 Fig)会为 git、npm、docker、aws 等数百个常用命令行工具自动提示子命令、选项和参数。
这是应用本身,还是它背后的补全数据?这个仓库存放的是补全规范(spec):用声明式 TypeScript 描述各个命令行工具的子命令、选项和参数。安装好的应用会读取这些规范来生成补全建议。
在 Windows 或 Linux 上能用吗?暂时不行——目前仅支持 macOS;Windows 和 Linux 的支持正在开发中,相关进展可以在项目的 discussions 里查看。
为什么一个叫 Fig 的仓库会提到 Amazon Q?在 AWS 改名后,Fig 变成了 Amazon Q Developer CLI。README 中说明这个原名 Fig 的项目仍然是开源的,后续的活跃开发已转移到 aws/amazon-q-developer-cli 仓库。
我需要写代码才能用吗,还是装好就能用?装好就能用:安装应用后,数百个命令行工具的补全开箱即用。编写 TypeScript 规范只是用来给那些还没有补全的命令添加支持。
Creator
withfig
Size
37.9 MB
Stars
25.2K
Age
6y
Commits · 90 Days