Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
khumnath committed Oct 19, 2024
1 parent f833a71 commit 10e7726
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
[package]
name = "ndate"
version = "0.1.0"
name = "nepdate-cli"
version = "0.1.1"
edition = "2021"
authors = ["Khumnath <nath.khum@gmail.com>"]

# Optional metadata
description = "bikram sambat calendar library(nepalidate using bikram library)."
license = "GPL-3.0"
repository = "https://github.com/khumnath/nepdate-cli/tree/rust"

[dependencies]
chrono = "0.4"
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ndate
# nepdate-cli

`ndate` is a simple command-line program built using the `bikram` library to convert dates between Bikram Sambat (Nepali calendar) and Gregorian dates.
`nepdate-cli` is a simple command-line program built using the `bikram` library to convert dates between Bikram Sambat (Nepali calendar) and Gregorian dates.

## Features

Expand All @@ -19,8 +19,8 @@
First, clone the repository:

```bash
git clone --branch rust https://github.com/khumnath/ndate.git
cd ndate
git clone --branch rust https://github.com/khumnath/nepdate-cli.git
cd nepdate-cli
```

### Build the Program
Expand Down Expand Up @@ -49,29 +49,29 @@ After building the program, you can use it to convert dates between the two cale
### Convert to Nepali Date (Bikram Sambat):

```
./target/release/ndate --conv --tobs <year> <month> <day>
./target/release/nepdate-cli --conv --tobs <year> <month> <day>
```
Example:
```
./target/release/ndate --conv --tobs 2024 10 18
./target/release/nepdate-cli --conv --tobs 2024 10 18
```
### Convert to Gregorian Date:
```
./target/release/ndate --conv --toad <year> <month> <day>
./target/release/nepdate-cli --conv --toad <year> <month> <day>
```
Example:
```
./target/release/ndate --conv --toad 2081 6 1
./target/release/nepdate-cli --conv --toad 2081 6 1
```
### License
ndate 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.
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.
### Contact
Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ if [ $? -ne 0 ]; then
exit 1 # Exit with a non-zero code to indicate failure
fi

# Get the executable path (replace 'your_project_name' with your actual project name)
executable_path="target/release/ndate"
# Get the executable path
executable_path="target/release/nepdate-cli"

# Display the path of the executable
echo "ndate executable built at: $executable_path"
echo "nepdate-cli executable built at: $executable_path"
sleep 2

# Check if the executable exists and is runnable
if [ -f "$executable_path" ]; then
# Run the executable
echo "Running ndate..."
echo "Running nepdate-cli..."
$executable_path
else
echo "Error: Executable not found at $executable_path"
Expand Down

0 comments on commit 10e7726

Please sign in to comment.