agscheduler-cli

Crates.ioagscheduler-cli
lib.rsagscheduler-cli
version0.5.0
sourcesrc
created_at2024-04-13 16:45:42.336981
updated_at2024-06-15 01:25:20.180921
descriptionCommand line interface for AGScheduler
homepagehttps://github.com/AGScheduler/agscheduler-cli
repositoryhttps://github.com/AGScheduler/agscheduler-cli
max_upload_size
id1207690
size108,682
kwkw (kwkwc)

documentation

README

AGScheduler-Cli

test publish codecov Crates.io GitHub release (with filter) license

Command line interface for AGScheduler

Installation

cargo install agscheduler-cli

Usage

$ agscheduler-cli -h
Command line interface for AGScheduler

Usage: agscheduler-cli [OPTIONS]

Options:
  -e, --endpoint <ENDPOINT>  AGScheduler HTTP endpoint [default: http://127.0.0.1:36370]
  -p, --password <PASSWORD>  AGScheduler password
                             You can also use the AGSCHEDULERCLI_AUTH environment variable to pass this password more safely [default: ]
  -h, --help                 Print help
  -V, --version              Print version


$ agscheduler-cli
Connecting to `http://127.0.0.1:36370`...
? Select your operation › [Page 1/3]
  Add Job
  Get Job
❯ Get All Jobs
  Update Job
  Delete Job
  Delete All Jobs
  Pause Job
  Resume Job

✔ Select your operation · Get All Jobs
+------------------+-------+----------+-----------+---------------------+---------------------+---------+
| ID               | Name  | Type     | TypeValue | LastRunTime         | NextRunTime         | Status  |
+=======================================================================================================+
| 8088b567cc3a4345 | myJob | interval | 60s       | 2024-02-18 00:17:28 | 2024-02-18 00:18:28 | running |
+------------------+-------+----------+-----------+---------------------+---------------------+---------+
Total 1

Development

# Clone code
git clone git@github.com:agscheduler/agscheduler-cli.git

# Working directory
cd agscheduler-cli

# Install dependencies
make install

# Run check
make check-all
Commit count: 82

cargo fmt