Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diamondgotcat/nesh

`Next Shell` and `Nesh Script`
https://github.com/diamondgotcat/nesh

Last synced: 28 days ago
JSON representation

`Next Shell` and `Nesh Script`

Awesome Lists containing this project

README

        

# Nesh
A new shell that can run regular commands (`/bin/sh`) as well as Nesh Scripts.

## Nesh Script

| Command | Subcommand | Parameters | Description |
|--------------|--------------------|-----------------------------|---------------------------------------------------------------------------------------------------|
| **CREATE** | `DIR` | `""` | Creates a directory at the specified path. |
| | `VAR` | `$VAR_NAME WITH TYPE VALUE` | Creates a variable with a specific type (`TEXT`, `BOOL`, `OPTION`) and value. |
| | `ALIAS` | `ALIAS FOR ""` | Creates an alias that maps to a specified command. |
| | `CMD` | `FROM ""` | Loads commands from an external file at the given path. |
| **APPEND** | | `"" TO $VAR_NAME` | Appends a value to an existing variable. |
| **SET** | `LANGUAGE` | `""` | Sets the language of the shell (options: `"ENGLISH"`, `"日本語"`). |
| | `VAR` | `$VAR_NAME WITH TYPE VALUE` | Sets an existing variable’s value with specific type (`BOOL`, `OPTION`). |
| **RUN** | `CMD` | `""` | Runs a specified command and captures its output. |
| | `NESH` | `FROM ""` | Runs commands from a specified Nesh script file. |
| **SAVE** | | `""` | Saves the last command result to a specified file path. |
| **EXIT** | | | Exits the shell. |
| **SLEEP** | | `WITH SECOND ` | Pauses execution for a specified number of seconds. |
| **REFLESH** | | | Reloads the configuration from `~/.neshrc`. |

## Locations
- `nesh.py`: Any Location is Supported
- `commands.json`: `~/.nesh/commands.json`
- `messages.json`: `~/.nesh/messages.json`