BashSpark
Loading...
Searching...
No Matches
command_test.h
Go to the documentation of this file.
1
27#pragma once
28
29#include "BashSpark/command.h"
30
31namespace bs {
56 class command_test : public command {
57 public:
62 : command("test") {
63 }
64
65 public:
73 [[nodiscard]] shell_status run(
74 const std::span<const std::string> &vArgs,
75 shell_session &oSession
76 ) const override;
77
78 public:
87 virtual void msg_error_test(std::ostream &oStdErr, shell_status nStatus) const;
88 };
89}
Performs a test. Returns through status code.
Definition command_test.h:56
command_test()
Constructs command.
Definition command_test.h:61
virtual void msg_error_test(std::ostream &oStdErr, shell_status nStatus) const
Displays the error message for test errors.
Definition command_test.cpp:259
shell_status run(const std::span< const std::string > &vArgs, shell_session &oSession) const override
Performs a test.
Definition command_test.cpp:240
Abstract base class for all shell commands.
Definition command.h:50
Represents an execution environment for a shell instance.
Definition shell_session.h:57
Defines the bs::command interface and built-in shell commands.
BashSpark main namespace.
Definition command.h:39
shell_status
Shell status codes.
Definition shell_status.h:47