#operating-system #scripting-language #variables #command #env-var #run-command #script

bellos

Bellande Operating System Scripting Programming Language written in Rust

4 releases

0.0.4 Oct 5, 2024
0.0.3 Sep 29, 2024
0.0.2 Sep 16, 2024
0.0.1 Sep 14, 2024

#242 in Operating systems

GPL-3.0-or-later

320KB
1.5K SLoC

Contains (ELF exe/lib, 685KB) executable/bellos

bellos

Bellande Operating System Scripting Language Features

  • Command Execution: Run both built-in and external commands.
  • Variable Assignment and Expansion: Assign and use variables within scripts or interactive mode.
  • Control Structures: Implement logic flow using if-else statements, while loops, and for loops.
  • Functions: Define and call custom functions.
  • File Operations: Perform basic file I/O operations.
  • Pipelines: Chain commands together using pipes.
  • Input/Output Redirection: Redirect command input and output to and from files.
  • Background Jobs: Run commands in the background.
  • Environment Variable Handling: Access and modify environment variables.

Bellos Installer

Usage of Bellande Rust Executable Builder

Usage of Bellande Rust Importer

Bellos executable run scripts

./bellos hello_world.bellos 

Built-in Commands

Basic Commands

  • echo [args...]: Print arguments to standard output.
  • cd [directory]: Change the current working directory.
  • exit: Exit the shell.

File Operations

  • write : Write content to a file.
  • append : Append content to a file.
  • read : Read and display the contents of a file.
  • read_lines : Read and display the contents of a file line by line.
  • delete : Delete a file.

BELLOS Usage

Website Crates

Installation

  • cargo add bellos
Name: bellos
Version: 0.0.1
Summary: Bellande Operating System Scripting Language
Home-page: github.com/RonaldsonBellande/bellos
Author: Ronaldson Bellande
Author-email: ronaldsonbellande@gmail.com
License: GNU General Public License v3.0

License

BellandeOS Scripting Language is distributed under the GNU General Public License v3.0, see LICENSE and NOTICE for more information.

Dependencies

~2–10MB
~128K SLoC