Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
T
time-slime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Michael Rouse
time-slime
Commits
46cf513d
Commit
46cf513d
authored
Aug 20, 2018
by
Michael Rouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version string and help documentation
parent
b966b676
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
README.md
README.md
+3
-0
shell/shell.c
shell/shell.c
+1
-1
shell/string_literals.h
shell/string_literals.h
+0
-1
timeslime.h
timeslime.h
+16
-0
No files found.
README.md
View file @
46cf513d
...
...
@@ -174,6 +174,9 @@ typedef struct TIMESLIME_REPORT_STRUCT TIMESLIME_REPORT_t;
Once build, if you add the executable (in the
`build`
folder) to your system
`PATH`
, you can run it with the following commands:
```
shell
# Show information and command help
>
timeslime
help
# Add an amount of time to the current date
>
timeslime add
[
hours]
...
...
shell/shell.c
View file @
46cf513d
...
...
@@ -193,7 +193,7 @@ static void perform_report_action(args_t args)
void
display_help
(
void
)
{
printf
(
"Author: %s
\n
"
,
AUTHOR
);
printf
(
"Version: %s
\n
"
,
PROGRAM_VERSION
);
printf
(
"Version: %s
\n
"
,
TIMESLIME_VERSION_STR
);
printf
(
"%s
\n\n\n
"
,
DESCRIPTION
);
printf
(
"Usage:
\n
"
);
...
...
shell/string_literals.h
View file @
46cf513d
...
...
@@ -31,7 +31,6 @@
#define PROGRAM_NAME "timeslime"
#define AUTHOR "Michael Rouse"
#define DESCRIPTION "\nTime Slime is a command line utility to keep \ntrack of hours worked remotely. \nA time sheet in your terminal!"
#define PROGRAM_VERSION "2018.08.19"
#define DATABASE_FILE "timeslime.db"
...
...
timeslime.h
View file @
46cf513d
...
...
@@ -118,4 +118,20 @@ char* TimeSlime_StatusCode(TIMESLIME_STATUS_t status);
#define __TS_QRY_GET_ALL_ENTIRES __TS_QRY_GET_COMPLTED_CLOCK_ENTRIES " OR " __TS_QRY_GET_ADDED_HOURS
/* Versioning, do not touch unless increasing the version */
#define _TO_VERSION_STRING(v) "v"__TO_VERSION_STRING(v)
#define __TO_VERSION_STRING(v) #v
#ifdef TIMESLIME_VERSION
#undef TIMESLIME_VERSION
#endif
#define TIMESLIME_VERSION 0.8
#ifdef TIMESLIME_VERSION_STR
#undef TIMESLIME_VERSION_STR
#endif
#define TIMESLIME_VERSION_STR _TO_VERSION_STRING(TIMESLIME_VERSION)
#endif
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment