@protorians/arcane
v0.2.2
Published
Protorians Arcane
Readme
@protorians/arcane
A powerful, flexible command-line interface for managing runes (plugins).
Table of Contents
Overview
@protorians/arcane is a command-line interface (CLI) tool built on top of @protorians/arcane-core. It provides a simple way to manage runes (plugins) that extend the functionality of the CLI. The tool allows you to add, remove, and craft runes, making it easy to customize your command-line experience.
Installation
# Using npm
npm install -g @protorians/arcane
# Using yarn
yarn global add @protorians/arcane
# Using pnpm
pnpm add -g @protorians/arcaneCore Concepts
Runes
Runes are plugins that extend the functionality of the arcane CLI. They can add new commands, options, and arguments to the CLI. Runes are typically distributed as GitHub repositories and can be installed using the add:rune command.
Commands
The arcane CLI provides several built-in commands for managing runes:
craft:runes: Crafts available runes installed in the runes directoryadd:rune: Adds a new rune from a GitHub repositoryremove:rune: Removes an installed rune
Basic Usage
# Install arcane globally
npm install -g @protorians/arcane
# Add a rune from GitHub
arcane add:rune owner/repository
# Craft all installed runes
arcane craft:runes
# Remove a rune
arcane remove:rune owner/repositoryAdvanced Features
Adding Runes
You can add runes from GitHub repositories using the add:rune command. The command takes a GitHub repository name in the format owner/repository or owner/repository@version.
# Add a rune from the main branch
arcane add:rune owner/repository
# Add a rune from a specific version
arcane add:rune owner/[email protected]When you add a rune, arcane will:
- Download the repository from GitHub
- Extract it to the runes directory
- Rename it to match the repository slug
- Update the rune's configuration
- Craft the rune to make it available for use
Removing Runes
You can remove installed runes using the remove:rune command. The command takes the name of the rune to remove.
# Remove a rune
arcane remove:rune owner/repositoryWhen you remove a rune, arcane will:
- Remove the rune from the runes configuration
- Delete the rune's directory
Crafting Runes
Crafting runes is the process of making them available for use in the CLI. When you craft runes, arcane scans the runes directory, reads each rune's configuration, and makes their commands available in the CLI.
# Craft all installed runes
arcane craft:runes
# Craft all installed runes silently (without logging)
arcane craft:runes --silentAPI Reference
Commands
craft:runes
Crafts available runes installed in the runes directory.
arcane craft:runes [options]Options:
--silent, -s: Disable logging
add:rune
Adds a new rune from a GitHub repository.
arcane add:rune <repository>Arguments:
repository: GitHub repository name (owner/repository or owner/repository@version)
remove:rune
Removes an installed rune.
arcane remove:rune <name>Arguments:
name: Name of the rune to remove
Types Reference
The arcane CLI uses types from the @protorians/arcane-core package. For a complete reference of these types, see the arcane-core documentation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
