--- /dev/null
+
+# Created by https://www.toptal.com/developers/gitignore/api/cmake,linux,c++
+# Edit at https://www.toptal.com/developers/gitignore?templates=cmake,linux,c++
+
+### C++ ###
+# Prerequisites
+*.d
+
+# Compiled Object files
+*.slo
+*.lo
+*.o
+*.obj
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Compiled Dynamic libraries
+*.so
+*.dylib
+*.dll
+
+# Fortran module files
+*.mod
+*.smod
+
+# Executables
+*.exe
+*.out
+*.app
+gen-shell
+
+### CMake ###
+CMakeLists.txt.user
+CMakeCache.txt
+CMakeFiles
+CMakeScripts
+Testing
+Makefile
+cmake_install.cmake
+install_manifest.txt
+compile_commands.json
+CTestTestfile.cmake
+_deps
+CPackConfig.cmake
+CPackSourceConfig.cmake
+
+### CMake Patch ###
+# External projects
+*-prefix/
+
+### Linux ###
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+# End of https://www.toptal.com/developers/gitignore/api/cmake,linux,c++
${CMAKE_SOURCE_DIR}/cmake.h)
add_subdirectory (src)
-add_subdirectory (doc)
if (EXISTS ${CMAKE_SOURCE_DIR}/test)
add_subdirectory (test EXCLUDE_FROM_ALL)
endif (EXISTS ${CMAKE_SOURCE_DIR}/test)
-set (doc_FILES NEWS ChangeLog INSTALL AUTHORS COPYING)
-foreach (doc_FILE ${doc_FILES})
- install (FILES ${doc_FILE} DESTINATION ${GEN-SHELL_DOCDIR})
-endforeach (doc_FILE)
-
# ---
set (CPACK_SOURCE_GENERATOR "TGZ")
/* Package information */
#define PACKAGE "gen-shell"
#define VERSION "0.0.1"
+#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "gen-shell"
#define PACKAGE_TARNAME "gen-shell"
#define PACKAGE_VERSION "0.0.1"
/* cmake information */
#define HAVE_CMAKE
-#define CMAKE_VERSION "3.8.1"
+#define CMAKE_VERSION "3.18.4"
/* Compiling platform */
-/* #undef LINUX */
-#define DARWIN
+#define LINUX
+/* #undef DARWIN */
/* #undef CYGWIN */
/* #undef FREEBSD */
/* #undef OPENBSD */
/* #undef UNKNOWN */
/* Found the Readline library */
-#define HAVE_READLINE
+/* #undef HAVE_READLINE */
/* Found the pthread library */
/* #undef HAVE_LIBPTHREAD */
/* commit.h.in. Creates commit.h during a cmake run */
/* git information */
-#define COMMIT "e6d0532"
+#define COMMIT "eb1e18e"
set (tasksh_SRCS diag.cpp
help.cpp
prompt.cpp
- review.cpp
+ # review.cpp
shell.cpp)
set (libshared_SRCS libshared/src/Color.cpp libshared/src/Color.h
target_link_libraries (tasksh_executable tasksh libshared ${TASKSH_LIBRARIES})
-set_property (TARGET tasksh_executable PROPERTY OUTPUT_NAME "tasksh")
+set_property (TARGET tasksh_executable PROPERTY OUTPUT_NAME "gen-shell")
install (TARGETS tasksh_executable DESTINATION ${TASKSH_BINDIR})
-
int cmdHelp ()
{
std::cout << '\n'
- << "A generic shell"
+ << "A generic shell";
return 0;
}
// tasksh commands.
int cmdHelp ();
int cmdDiagnostics ();
-int cmdReview (const std::vector <std::string>&, bool);
+// int cmdReview (const std::vector <std::string>&, bool);
int cmdShell (const std::vector <std::string>&);
std::string promptCompose ();
std::string findTaskwarrior ();
else if (closeEnough ("quit", args[0], 3)) status = -1;
else if (closeEnough ("help", args[0], 3)) status = cmdHelp ();
else if (closeEnough ("diagnostics", args[0], 3)) status = cmdDiagnostics ();
- else if (closeEnough ("review", args[0], 3)) status = cmdReview (args, autoClear);
+ // else if (closeEnough ("review", args[0], 3)) status = cmdReview (args, autoClear);
else if (closeEnough ("exec", args[0], 3) ||
args[0][0] == '!') status = cmdShell (args);
else if (command != "")