Compare commits
10 commits
3566b52698
...
af4002a431
Author | SHA1 | Date | |
---|---|---|---|
af4002a431 | |||
c216f6dcc5 | |||
28a461b8fc | |||
6b064eb806 | |||
5f3d176045 | |||
5d73c12316 | |||
f42f289b4e | |||
bb0ef7631b | |||
0ea62601e5 | |||
be2f6fdac2 |
9 changed files with 118 additions and 13 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -31,9 +31,8 @@ hs_err_pid*
|
|||
build
|
||||
|
||||
# Ignore gradle wrapper
|
||||
/gradle
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
gradlew
|
||||
gradlew.bat
|
||||
|
||||
# Ignore manual compilation results
|
||||
/de/jotoho/
|
||||
|
|
16
AUTHORS.md
Normal file
16
AUTHORS.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# waituntil Contributors / Authors
|
||||
|
||||
By adding their names to this document, contributors agree to license all of their
|
||||
contributions and patches to the waituntil project [under the AGPL version 3 or later.](./LICENSE.md)
|
||||
|
||||
Contributors may choose to supply either their complete legal name, online pseudonym or both.
|
||||
At least one is required.
|
||||
|
||||
The email, website and notes fields are optional but contributors are encouraged
|
||||
to supply at least one reliable method of communication.
|
||||
|
||||
## Maintainer(s)
|
||||
|
||||
| full name | pseudonym | email | website | notes |
|
||||
|-|:-:|-:|-:|-|
|
||||
| Jonas Tobias Hopusch | jotoho | [contact@jotoho.de](mailto:contact@jotoho.de) | [www.jotoho.de](https://www.jotoho.de/) | original creator |
|
16
README.md
16
README.md
|
@ -14,11 +14,25 @@ the next command to run. The timestamp can be passed in the formats `HH:MM` or `
|
|||
be in the 24-hour system. Passing dates is not supported but entering a time that has already passed
|
||||
will make the software wait until that time on the following day.
|
||||
|
||||
## Contributing / Submitting Feedback
|
||||
|
||||
The [canonical home of this project](https://gitea.jotoho.de/jotoho/waituntil/) is
|
||||
[on my personal Gitea-instance](https://gitea.jotoho.de/) but since it has registration
|
||||
turned off, collaborating there is difficult.
|
||||
|
||||
If you have not been given an account on [gitea.jotoho.de](https://gitea.jotoho.de/)
|
||||
then you can alternatively send me feedback, bug reports or patches [via email to
|
||||
contact@jotoho.de](mailto:contact@jotoho.de).
|
||||
Should that fail, there may be alternative ways to contact me listed on
|
||||
[my personal website.](https://www.jotoho.de/)
|
||||
|
||||
In the future, I may also decide to create a mirror for this project on GitHub, gitlab.com or similar.
|
||||
|
||||
## Copyright / Licensing
|
||||
|
||||
```
|
||||
waituntil - a tool for delaying command execution until the specified time
|
||||
Copyright (C) 2021 Jonas Tobias Hopusch
|
||||
Copyright (C) 2022 Jonas Tobias Hopusch
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -1,16 +1,24 @@
|
|||
import java.io.ByteArrayOutputStream
|
||||
import java.io.OutputStream
|
||||
|
||||
plugins {
|
||||
// Apply the application plugin to add support for building a CLI application in Java.
|
||||
application
|
||||
java
|
||||
}
|
||||
|
||||
// For generating fat jars
|
||||
id("com.github.johnrengelman.shadow") version "latest.release"
|
||||
repositories {
|
||||
// Use Maven Central for resolving dependencies.
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
fun versionBanner(): String {
|
||||
val os = org.apache.commons.io.output.ByteArrayOutputStream()
|
||||
val os = ByteArrayOutputStream()
|
||||
val devNull = OutputStream.nullOutputStream()
|
||||
project.exec {
|
||||
commandLine = "git describe --always --dirty".split(" ")
|
||||
commandLine = "git describe --tags --always --dirty --abbrev".split(" ")
|
||||
standardOutput = os
|
||||
errorOutput = devNull
|
||||
}
|
||||
return String(os.toByteArray()).trim()
|
||||
}
|
||||
|
@ -18,11 +26,6 @@ fun versionBanner(): String {
|
|||
group = "de.jotoho"
|
||||
version = versionBanner()
|
||||
|
||||
repositories {
|
||||
// Use Maven Central for resolving dependencies.
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
|
|
1
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
1
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
|
@ -1,5 +1,23 @@
|
|||
package de.jotoho.waituntil;
|
||||
|
||||
/*
|
||||
waituntil - a tool for delaying command execution until the specified time
|
||||
Copyright (C) 2022 Jonas Tobias Hopusch
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public record GlobalConf() {
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
package de.jotoho.waituntil;
|
||||
|
||||
/*
|
||||
waituntil - a tool for delaying command execution until the specified time
|
||||
Copyright (C) 2022 Jonas Tobias Hopusch
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
package de.jotoho.waituntil;
|
||||
|
||||
/*
|
||||
waituntil - a tool for delaying command execution until the specified time
|
||||
Copyright (C) 2022 Jonas Tobias Hopusch
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
package de.jotoho.waituntil;
|
||||
|
||||
/*
|
||||
waituntil - a tool for delaying command execution until the specified time
|
||||
Copyright (C) 2022 Jonas Tobias Hopusch
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
|
Loading…
Reference in a new issue