-
Notifications
You must be signed in to change notification settings - Fork 0
/
typecode.cpp
34 lines (28 loc) · 955 Bytes
/
typecode.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// MIT License
//
// Copyright (c) 2021 Ferhat Geçdoğan All Rights Reserved.
// Distributed under the terms of the MIT License.
//
#include "include/typecode.hpp"
int main(int argc, char** argv) noexcept {
if(argc < 2) {
std::cout << "typecode - create unique code that introduce yourself\n"
"\n"
"Usage:\n" <<
argv[0] << " {typecode}\n";
return 1;
}
std::string x = std::string(argv[1]);
TypeCode q;
q.init(x);
std::cout << "\x1b[0;93mLanguages\x1b[0m:\n";
for(auto& language : q.info_languages) {
std::cout << " " + language << '\n';
} std::cout << "\n\x1b[0;92mBranches\x1b[0m:\n";
for(auto& branch : q.info_branches) {
std::cout << " " + branch << '\n';
} std::cout << "\n\x1b[0;92mOperating Systems\x1b[0m:\n";
for(auto& os : q.info_operating_systems) {
std::cout << " " + os << '\n';
}
}