it understands it has a version now
This commit is contained in:
parent
89738cecaa
commit
b34430b9e2
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,3 +14,5 @@ Makefile
|
||||
*/Makefile
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
|
||||
src/version.cpp
|
||||
|
@ -1,4 +1,4 @@
|
||||
bin_PROGRAMS = cellar
|
||||
cellar_CPPFLAGS = $(BOOST_CPPFLAGS)
|
||||
cellar_LDFLAGS = $(BOOST_LDFLAGS) $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB)
|
||||
cellar_SOURCES = cellar.cpp fs.cpp bottles.cpp commands.cpp
|
||||
cellar_SOURCES = cellar.cpp fs.cpp bottles.cpp commands.cpp version.cpp
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "bottles.hpp"
|
||||
#include "commands.hpp"
|
||||
#include "version.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace cellar;
|
||||
@ -15,6 +16,7 @@ using json = nlohmann::json;
|
||||
int main(int argc, char* argv[]) {
|
||||
vector<string> commands = commands::list_commands();
|
||||
cout << "cellar - bottle management tool for WINE connoisseurs" << std::endl;
|
||||
cout << version::short_version() << std::endl;
|
||||
for (string item : commands) {
|
||||
cout << item << " has loaded" << endl;
|
||||
}
|
||||
|
@ -5,7 +5,9 @@
|
||||
string cellar::version::short_version() {
|
||||
/*[[[cog
|
||||
import cog
|
||||
print("// I came from the print function!")
|
||||
import os
|
||||
|
||||
print(os.getcwd())
|
||||
|
||||
cog.outl("return \"dummy cog file!\";")
|
||||
]]]*/
|
||||
|
@ -2,6 +2,10 @@
|
||||
#define __VERSION_HPP
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace cellar {
|
||||
namespace version {
|
||||
string short_version();
|
||||
|
Loading…
Reference in New Issue
Block a user