Skip to content

Commit

Permalink
talenta 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
el7cosmos committed Oct 17, 2020
1 parent f9e3d77 commit c8823c8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "talenta"
version = "0.3.0"
version = "0.3.1"
authors = ["el7cosmos <[email protected]>"]
edition = "2018"
description = "Talenta CLI"
Expand Down
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@
## Installation

### Rust Cargo
```sh
```shell script
cargo install talenta
```

### macOS Homebrew
```sh
brew install el7cosmos/brew/talenta
```shell script
brew tap el7cosmos/brew
brew install talenta
```

## Usage

### Login
```sh
```shell script
# Interactive
talenta login

Expand All @@ -37,7 +38,7 @@ talenta login --email <EMAIL> --password <PASSWORD>
```

### Request attendance
```sh
```shell script
# Interactive, use current date
talenta attendance

Expand All @@ -51,12 +52,27 @@ talenta attendance --checkin-time <TIME> --checkout-time <TIME> --reason <reason
talenta attendance --date <DATE> --checkin-time <TIME> --checkout-time <TIME> --reason <reason>
```

- `DATE`: ISO 8601 date format (`YYYY-mm-dd`)
- `TIME`: Time in format `HH:MM`

#### Independent checkin/checkout
```shell script
# Interactive, use current date and time
talenta attendance checkin
talenta attendance checkout

# Interactive, change attendance date and time
talenta attendance checkin --date <DATE> --time <TIME>
talenta attendance checkout --date <DATE> --time <TIME>

# Non-interactive, use current date and time
talenta attendance checkin --reason <reason>
talenta attendance checkout --reason <reason>

# Non-interactive, change attendance date and time
talenta attendance checkin --reason <reason> --date <DATE> --time <TIME>
talenta attendance checkout --reason <reason> --date <DATE> --time <TIME>
```

> Planned in **0.3.x**
- `DATE`: ISO 8601 date format (`YYYY-mm-dd`)
- `TIME`: Time in format `HH:MM`

### Live attendance

Expand Down

0 comments on commit c8823c8

Please sign in to comment.