Skip to content

Commit

Permalink
update 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmoug committed Jan 3, 2023
1 parent 441add2 commit 3b518be
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 169 deletions.
223 changes: 222 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "rust-calendar"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description = "A calendar command-line tool written in rust"
readme = "README.md"
authors = ["Mogmoug <[email protected]>"]
repository = "https://github.com/mogmoug/rust-calendar"
license = "MIT"
keywords = ["mogmoug", "calendar", "cli", "tool"]
keywords = ["mogmoug", "calendar", "cli", "tool","time"]
categories = ["command-line-utilities"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = "0.4.23"
chrono = "0.4.23"
clap = { version = "4.0.32", features = ["derive"] }
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
# rust-calendar
生锈的日历
一个使用rust编写的日历,可以打印某个月的日历
适合初学者学习此项目
```
A calendar command-line tool written in rust
Usage: rust-calendar [ARGUMENTS]
Arguments:
now Prints the calendar for the current month
debug_calendar Debug prints the calendar for the current month
help Show this help
year_month Print a calendar for a month and year,Usage:rust-calendar year_month YEAR MONTH
Usage: rust-calendar [COMMAND]
Commands:
now Now get the calendar for this month.
date Usage: rust-calendar date [YEAR] [MONTH]
Get the calendar for a month and year.
debug-info Debug output information.
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help information
-V, --version Print version information
```
## 编译
```shell
Expand Down
Loading

0 comments on commit 3b518be

Please sign in to comment.