New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

easycli-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easycli-autocomplete

Shell autocomplete generator for EasyCLI

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

easycli-autocomplete

Automatic shell completion generator for EasyCLI applications.

Features

  • Multi-Shell Support: Generates scripts for Bash, Zsh, and Fish.
  • Context Aware: Autocompletes commands, subcommands, and flags.
  • Fast: Static script generation for zero-latency completion.

Installation

pnpm add easycli-autocomplete

Usage

import { generateCompletion } from "easycli-autocomplete";

// Get your CLI config (usually from defineCLI)
const config = {
  name: "my-cli",
  commands: { ... }
};

// Generate script for Bash
const script = generateCompletion("bash", config);

console.log(script);

Integration

Typically, you would add a completion command to your CLI:

import { defineCommand } from "easycli-core";
import { generateCompletion } from "easycli-autocomplete";

export const completion = defineCommand({
  description: "Generate completion script",
  args: {
    shell: {
        type: "enum",
        values: ["bash", "zsh", "fish"]
    }
  },
  run({ args, ctx }) {
    // Assuming you have access to the full CLI config
    const script = generateCompletion(args.shell, ctx.config);
    console.log(script);
  }
});

FAQs

Package last updated on 16 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts