Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Add registration and event triggers, fix various issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobineau committed Jul 31, 2022
1 parent b8f0188 commit f6df4ca
Show file tree
Hide file tree
Showing 5 changed files with 214 additions and 40 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.0] - 2022-07-30

This release completes the available triggers in the Windows Task Scheduler.

### Added
* Add monthly dow trigger
* Add monthly trigger
* Add Changelog
* Add event trigger
* Add registration trigger

### Changed
* Improve documentation
* Change triggers to accept bools instead of i16
* Update cargo toml
* Update readme

### Fixed
* Fix casting issues
* Removed mutability to parameters that do not need it

## [0.0.1] - 2022-04-10
### Added
* Add ability to set settings on task
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Matt Robineau <[email protected]>"]
description = "planif is a builder pattern wrapper for the windows task scheduler API of windows-rs."
license = "MIT"
repository = "https://github.com/mattrobineau/planif"
version = "0.0.2"
version = "0.1.0"
edition = "2021"
keywords = ["scheduled", "task", "windows"]
categories = ["os::windows-apis"]
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ Please refer to the `examples` folder. The folder contains code for creating eac
### Create Triggers
- [x] Boot
- [x] Daily
- [ ] Event
- [ ] Idle
- [X] Event
- [X] Idle
- [x] Logon
- [X] MonthlyDOW
- [x] Monthly
- [ ] Registration
- [X] Registration
- [x] Time
- [x] Weekly

### Trigger settings
- [ ] IdleSettings

### Other
Other settings may also be missing.

### Other (maybe)
- [ ] Delete triggers
- [ ] List triggers

Expand Down
2 changes: 1 addition & 1 deletion src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub enum DayOfMonth {
Last,
}

impl From<DayOfMonth> for i32 {
impl From<DayOfMonth> for u32 {
fn from(day: DayOfMonth) -> Self {
match day {
DayOfMonth::Day(i) => 1 << i,
Expand Down
Loading

0 comments on commit f6df4ca

Please sign in to comment.