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
+82-59Lines changed: 82 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,119 +5,142 @@ nepdate-cli is a command-line tool for displaying and converting dates between t
5
5
> [!NOTE]
6
6
> Rust port is available at rust branch of this repository. if you want to install just binary using cargo use
7
7
> ``` cargo install nepdate-cli ``` or use as dependency on Cargo.toml file. ``` nepdate-cli = "0.1.3" ```
8
-
> check https://github.com/khumnath/nepdate-cli/blob/rust/src/bikram.rs for available functions or https://github.com/khumnath/nepdate-cli/blob/rust/src/main.rs for example uses.
9
-
> read readme file for rust https://github.com/khumnath/nepdate-cli/blob/rust/README.md
8
+
> check https://github.com/opensource-nepal/nepdate-cli/blob/rust/src/bikram.rs for available functions or https://github.com/opensource-nepal/nepdate-cli/blob/rust/src/main.rs for example uses.
9
+
> read readme file for rust https://github.com/opensource-nepal/nepdate-cli/blob/rust/README.md
10
10
11
11
### Features
12
12
13
13
- Display the current Bikram Sambat date.
14
14
- Convert dates between Bikram Sambat and Gregorian calendars.
15
-
- Supports very long date range.
15
+
- Supports date formatting with devnagari script and date format specifiers.
16
+
- Supports very long date range.
16
17
17
18
### Installation
18
19
19
20
There are two installation methods available: using a Debian package or compiling from source.
20
21
21
22
#### From Debian Package
22
23
23
-
1.**Download the latest `.deb` file** from the [releases](https://github.com/khumnath/nepdate-cli/releases) page.
24
+
1.**Download the latest `.deb` file** from the [releases](https://github.com/opensource-nepal/nepdate-cli/releases) page.
24
25
2.**Install the package** using `dpkg`:
25
26
26
-
Bash
27
+
```bash
28
+
sudo dpkg -i nepdate-cli_1.0.0_amd64.deb
29
+
```
27
30
28
-
```
29
-
sudo dpkg -i nepdate-cli_1.0.0_amd64.deb
30
-
31
-
```
32
-
33
-
Replace `nepdate-cli_1.0.0_amd64.deb` with the filename of the downloaded package.
31
+
Replace `nepdate-cli_1.0.0_amd64.deb` with the filename of the downloaded package.
* packages debhelper and devscripts are for building debian installer package.
50
+
*packages debhelper and devscripts are for building debian installer package.*
57
51
58
52
3. Build and install:
59
53
60
-
Bash
61
-
62
-
```
63
-
mkdir build
64
-
cd build
65
-
cmake ..
66
-
make
67
-
sudo make install
68
-
69
-
```
70
-
* if need to build deb package, run ``` dpkg-buildpackage -b``` after ```make```
54
+
```bash
55
+
mkdir build
56
+
cd build
57
+
cmake ..
58
+
make
59
+
sudo make install
60
+
```
71
61
62
+
*if need to build deb package with signing, run `dpkg-buildpackage -b` from project root directory. (you have to edit email address to yours in files in /debian folder.)*
63
+
*`dpkg-buildpackage -b -us -uc`command builds debian package without signing.*
72
64
73
65
### Usage
74
66
75
67
Once installed, you can use nepdate-cli from the command line. Here are some basic commands:
76
68
77
-
- Display the current Bikram Sambat date:
78
-
79
-
Bash
69
+
```bash
70
+
nepdate-cli
71
+
```
80
72
73
+
Output:
81
74
```
82
-
nepdate-cli
75
+
Today's Date:
76
+
Gregorian: 2024 11 15 Friday
77
+
Bikram Sambat: 2081 8 30 शुक्रवार days in bikram month: 30
### ** Replace the date strings with the date you want to convert.
104
128
105
-
## Contributing
129
+
### Contributing
106
130
107
-
Contributions are welcome! If you have any bug reports or feature requests, please open an issue on the GitHub [repository](https://github.com/khumnath/nepdate-cli).
131
+
Contributions are welcome! If you have any bug reports or feature requests, please open an issue on the GitHub [repository](https://github.com/opensource-nepal/nepdate-cli).
108
132
109
133
Here's a quick guide to contributing code:
110
134
111
135
1. Fork the repository.
112
-
3. Create a new branch for your changes.
113
-
5. Commit your changes and push them to your fork.
114
-
7. Open a pull request against the main branch of the original repository.
115
-
136
+
2. Create a new branch for your changes.
137
+
3. Commit your changes and push them to your fork.
138
+
4. Open a pull request against the main branch of the original repository.
116
139
117
140
### License
118
141
119
142
nepdate-cli is released under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html). See the LICENSE file for more details.
120
143
121
144
### Contact
122
145
123
-
For any inquiries, you can reach out to [khumnath](https://khumnath.com.np)cg.
146
+
For any inquiries, you can reach out to [khumnath cg](https://khumnath.com.np) .
0 commit comments