BashSpark
Loading...
Searching...
No Matches
command.cpp File Reference

Implements class bs::command. More...

#include "BashSpark/command.h"
#include <limits>
#include <ostream>
#include <regex>
#include <sstream>
#include <BashSpark/shell/shell_parser.h>
#include "shell/shell_tools.h"
#include "BashSpark/shell/shell_session.h"
#include "BashSpark/tools/fakestream.h"
#include "BashSpark/tools/hash.h"
Include dependency graph for command.cpp:

Namespaces

namespace  bs
 BashSpark main namespace.
 

Detailed Description

Implements class bs::command.

Provides an interface define shell commands.

This file provides the base class command for shell commands and several concrete commands such as echo, eval, getenv, getvar, setenv, setvar, and seq. Each command can be executed within a shell session and provides virtual error-handling methods to allow custom behavior, including internationalization.

Date
Created on 2/11/25
Author
Dante Doménech Martínez

This file is part of BashSpark. Copyright (C) 2025 Dante Doménech Martínez

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.