Compare commits

...

4 Commits

Author SHA1 Message Date
Comix 9f6fc4f376
refactor: make Signal to be type alias of std::string (#80)
std::string is not designed to be inherited form.
The destructor of std::string isn't virtual.

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-02-11 21:04:09 +08:00
black-desk dcef24b3e7
ci: use alls-green
Signed-off-by: black-desk <me@black-desk.cn>
2024-08-22 17:01:27 +08:00
black-desk fa10aa531f
docs: update README
Signed-off-by: black-desk <me@black-desk.cn>
2024-08-22 16:54:15 +08:00
black-desk 3089f45fef
docs: update README
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-15 13:39:02 +08:00
4 changed files with 11 additions and 12 deletions

View File

@ -65,8 +65,13 @@ jobs:
cmake --workflow --preset ci
pass:
name: Pass
needs: [checks, build-and-test]
if: always()
needs:
- checks
- build-and-test
runs-on: ubuntu-latest
steps:
- name: Placeholder
run: true
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

View File

@ -31,7 +31,6 @@ struct DeleteOption;
struct ExecOption;
struct KillOption;
struct ListOption;
class Signal;
struct StartOption;
struct StateOption;
struct GlobalOption;

View File

@ -2,11 +2,7 @@
#include <string>
namespace ocppi::runtime
{
class Signal : public std::string {
using std::string::string;
};
namespace ocppi::runtime {
using Signal = std::string;
}

View File

@ -10,6 +10,7 @@
#include "ocppi/runtime/DeleteOption.hpp"
#include "ocppi/runtime/FeaturesOption.hpp"
#include "ocppi/runtime/KillOption.hpp"
#include "ocppi/runtime/Signal.hpp"
#include "ocppi/runtime/StartOption.hpp"
#include "ocppi/runtime/StateOption.hpp"
#include "ocppi/runtime/features/types/Features.hpp"
@ -24,8 +25,6 @@ namespace state::types
struct State;
}
class Signal;
class SpecRuntime {
public:
SpecRuntime() = default;