ArKanjo 0.5.1
A tool for find code duplicated functions in codebases
version.cpp
Go to the documentation of this file.
1#include "version.hpp"
2
4
6
7Version::Version([[maybe_unused]] Similarity_Table* _similarity_table) { }
8
9bool Version::validate([[maybe_unused]] const ParsedOptions& options) {
10 return true;
11}
12
13bool Version::run([[maybe_unused]] const ParsedOptions& options) {
14 std::string version = Config::config().project_version;
15 fm::write(version);
16
17 return true;
18}
static Config & config()
Gets the singleton configuration instance.
Definition: config.cpp:68
static void write(const std::string &template_str, const std::vector< T > &data, enum Format effective=Format::AUTO, RowColorFn color_fn=nullptr, std::ostream &out=std::cout)
Represents a similarity graph between functions (paths).
bool validate(const ParsedOptions &options) override
Validate the arguments already analyzed.
Definition: version.cpp:9
Version(Similarity_Table *_similarity_table)
Definition: version.cpp:7
bool run(const ParsedOptions &options) override
Executes the main logic of the command.
Definition: version.cpp:13
Configuration management interface.
std::string project_version
Current project version.
Definition: schema.hpp:19
Defines the version command interface.