Manager: Add verbose flag and store it in new Config class

Check the verbosity in the Dotfile class when printing file operations.
This commit is contained in:
Riyyi
2022-01-24 01:03:30 +01:00
parent 5ec1272172
commit c032373940
3 changed files with 37 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2022 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#ifndef CONFIG_H
#define CONFIG_H
#include "util/singleton.h"
class Config : public Util::Singleton<Config> {
public:
Config(s) {}
virtual ~Config() {}
void setVerbose(bool verbose) { m_verbose = verbose; }
bool verbose() const { return m_verbose; }
private:
bool m_verbose { false };
};
#endif // CONFIG_H