mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
CmdVersion: Uses libshared osName
This commit is contained in:
parent
c937f18ab8
commit
e128185f5f
1 changed files with 2 additions and 24 deletions
|
@ -33,6 +33,7 @@
|
|||
#ifdef HAVE_COMMIT
|
||||
#include <commit.h>
|
||||
#endif
|
||||
#include <shared.h>
|
||||
#include <format.h>
|
||||
#include <i18n.h>
|
||||
|
||||
|
@ -78,30 +79,7 @@ int CmdVersion::execute (std::string& output)
|
|||
|
||||
out << '\n'
|
||||
<< format ("{1} {2} built for ", bold.colorize (PACKAGE), bold.colorize (VERSION))
|
||||
|
||||
#if defined (DARWIN)
|
||||
<< "darwin"
|
||||
#elif defined (SOLARIS)
|
||||
<< "solaris"
|
||||
#elif defined (CYGWIN)
|
||||
<< "cygwin"
|
||||
#elif defined (HAIKU)
|
||||
<< "haiku"
|
||||
#elif defined (OPENBSD)
|
||||
<< "openbsd"
|
||||
#elif defined (FREEBSD)
|
||||
<< "freebsd"
|
||||
#elif defined (NETBSD)
|
||||
<< "netbsd"
|
||||
#elif defined (LINUX)
|
||||
<< "linux"
|
||||
#elif defined (KFREEBSD)
|
||||
<< "gnu-kfreebsd"
|
||||
#elif defined (GNUHURD)
|
||||
<< "gnu-hurd"
|
||||
#else
|
||||
<< STRING_CMD_VERSION_UNKNOWN
|
||||
#endif
|
||||
<< osName ()
|
||||
<< '\n'
|
||||
<< "Copyright (C) 2006 - 2018 P. Beckingham, F. Hernandez."
|
||||
<< '\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue