24 const std::string vers;
25 const std::vector<std::string> tags;
30 stdout_plugin() : vers(
"1.0.0") , tags({
"none"}), state(ok), paused(
false) { }
32 int publish(std::shared_ptr<builder_api> b) {
37 std::cout << b->serialize() << std::endl;
41 int config(
const std::map< std::string, std::string >& ) {
45 int config(
const std::map< std::string, std::string >& , std::string_view ) {
68 std::string_view
name()
const {
Publisher plugin interface.
Terminal output publisher_api implementation. This plugin sends messages to stdout synchronously....
int publish(std::shared_ptr< builder_api > b)
Publish the content of the builder.
const std::map< const std::string, const std::string > & get_option_defaults()
Look up the settable options and their defaults.
int config(const std::map< std::string, std::string > &, std::string_view)
Configure the plugin with the options given and the corresponding environment variables.
int config(const std::map< std::string, std::string > &)
Configure the plugin with the options given.
void pause()
Pause publishing until a call to resume. Duplicate calls are allowed.
int initialize()
Ready the plugin to publish following the configuration options set or defaulted.
void resume()
Resume publishing Duplicate calls are allowed.
std::string_view name() const
void finalize()
Stop publishing and release any resources held for managing publication.
std::string_view version() const
std::map< const std::string, const std::string > stdout_defaults