vue-command
A fully working Vue.js terminal emulator.
Features
- Parse arguments with yargs-parser
- Search history (with ↑/↓)
- White/Dark theme support
- Autocomplete (with ↹)
Installation
Properties
Property | Type | Default | Required | Description |
---|---|---|---|---|
commands |
Object |
{} |
Yes | Key-value pairs where key is command and value is function with yargs arguments |
help-text |
String |
Type help |
No | Sets the placeholder |
help-timeout |
Number |
4000 |
No | Sets the placeholder timeout |
hide-bar |
Boolean |
false |
No | Hides the bar |
hide-prompt |
Boolean |
false |
No | Hides the prompt |
prompt |
String |
~neil@moon:# |
No | Sets the prompt |
show-help |
Boolean |
false |
No | Shows the placeholder |
title |
String |
neil@moon: ~ |
No | Sets the title |
white-theme |
Boolean |
false |
No | Enables the white theme |
yargs-options |
Object |
{} |
No | Sets the yargs options |