remove clip-lib

This commit is contained in:
2024-09-19 13:11:19 +01:00
parent 729a4a0a0c
commit e597d59cb2
23 changed files with 10 additions and 4061 deletions
-8
View File
@@ -2,7 +2,6 @@
#include <regex>
#include <string>
#include <fstream>
#include "clip-lib/clip.h"
#include <random>
using namespace std;
@@ -98,7 +97,6 @@ int help() {
cout << " -h Show this help message" << endl;
cout << " -f Read from file" << endl;
cout << " -o Write to file" << endl;
cout << " -c Copy to clipboard" << endl;
cout << " -ne Stops extra stuff from being added to the end of sentences" << endl;
cout << " -nf Stops full word replacements" << endl;
cout << " text Text to convert" << endl;
@@ -129,8 +127,6 @@ int main(int argc, char *argv[]) {
return help();
} else if (i == argc-1) {
input = string(argv[i]);
} else if (string(argv[i]) == "-c") {
clipboard = true;
} else if (string(argv[i]) == "-ne") {
no_random_ending = true;
} else if (string(argv[i]) == "-nf") {
@@ -189,9 +185,6 @@ int main(int argc, char *argv[]) {
} else if (input != "") {
if (outputfile != "") {
*output << owo(input, no_full_word, no_random_ending) << endl;
} else if (clipboard) {
clip::set_text(owo(input, no_full_word, no_random_ending));
cout << owo("Copied to clipboard") << endl;
} else {
cout << owo(input, no_full_word, no_random_ending) << endl;
}
@@ -201,6 +194,5 @@ int main(int argc, char *argv[]) {
((ofstream*)output)->close();
}
return 0;
}