You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
-
# Document Management System (DMS)
1
+
# Notepad Command Line Base (NoteCLI)
2
2
3
-
A command-line based Document Management System written in C that allows users to create, read, update, and delete text documents organized in categories. The system includes automatic versioning and comprehensive operation logging.
3
+
A command-line based notepad app written in C that allows users to create, read, update, and delete textfile organized in categories. The system includes automatic versioning and comprehensive operation logging.
4
4
5
5
## Features
6
6
7
-
- Create new text documents in different categories
8
-
- Read existing documents
9
-
- Update document content with automatic version backup
10
-
- Delete documents
7
+
- Create new text textfile in different categories
8
+
- Read existing textfile
9
+
- Update textfile content with automatic version backup
10
+
- Delete textfile
11
11
- Organized file structure with categories
12
-
- Version history for edited documents
12
+
- Version history for edited textfile
13
13
- Complete operation logging with timestamps
14
14
- Error handling and input validation
15
15
- Color-coded console output
16
-
- Clean all documents with history preservation
16
+
- Clean all textfile with history preservation
17
17
18
18
## Directory Structure
19
19
20
20
```
21
-
DocumentManager/
21
+
NoteCLI/
22
22
├── bin/ # Compiled binary
23
23
├── src/ # Source code files
24
24
├── include/ # Header files
25
-
├── data/ # Document storage
26
-
│ ├── recipes/ # Recipe documents
27
-
│ ├── notes/ # Note documents
25
+
├── data/ # textfile storage
26
+
│ ├── recipes/ # Recipe textfile
27
+
│ ├── notes/ # Note textfile
28
28
│ ├── logs/ # Operation logs and history
29
29
│ │ └── history.txt # Complete operation history
30
30
│ └── versions/ # Automatically saved old versions
@@ -47,15 +47,15 @@ To clean the build files:
47
47
make clean
48
48
```
49
49
50
-
To clean all documents while preserving history:
50
+
To clean all textfile while preserving history:
51
51
52
52
```bash
53
53
make clean-docs
54
54
```
55
55
56
56
This will:
57
57
1. Ask for confirmation before proceeding
58
-
2. Remove all documents in notes, recipes, and versions directories
58
+
2. Remove all textfile in notes, recipes, and versions directories
59
59
3. Preserve the operation history in data/logs/history.txt
60
60
4. Log the cleanup operation with timestamp
61
61
@@ -66,29 +66,29 @@ This will:
66
66
The DMS supports the following commands:
67
67
68
68
```bash
69
-
# Create a new document
69
+
# Create a new textfile
70
70
./bin/dms create <category><filename>
71
71
72
-
# Read a document
72
+
# Read a textfile
73
73
./bin/dms read<category><filename>
74
74
75
-
# Update a document
75
+
# Update a textfile
76
76
./bin/dms update <category><filename>
77
77
78
-
# Delete a document
78
+
# Delete a textfile
79
79
./bin/dms delete <category><filename>
80
80
```
81
81
82
82
### Available Categories
83
-
The system organizes documents into these categories:
83
+
The system organizes textfile into these categories:
84
84
-`recipes` - For storing cooking recipes
85
85
-`notes` - For general notes and todos
86
86
-`logs` - For logs and records
87
87
88
88
### How to Use
89
89
90
-
#### 1. Creating Documents
91
-
There are two ways to create documents:
90
+
#### 1. Creating textfile
91
+
There are two ways to create textfile:
92
92
93
93
a. Interactive Mode:
94
94
```bash
@@ -101,14 +101,14 @@ b. Using Echo (for quick creation):
0 commit comments