Compare commits

..

No commits in common. "af4002a4311f6b820bcaade45dfe1546e8fd5b24" and "3566b52698cae72c8d3a8f0583e2a858968a920f" have entirely different histories.

9 changed files with 13 additions and 118 deletions

5
.gitignore vendored
View file

@ -31,8 +31,9 @@ hs_err_pid*
build build
# Ignore gradle wrapper # Ignore gradle wrapper
gradlew /gradle
gradlew.bat /gradlew
/gradlew.bat
# Ignore manual compilation results # Ignore manual compilation results
/de/jotoho/ /de/jotoho/

View file

@ -1,16 +0,0 @@
# 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 |

View file

@ -14,25 +14,11 @@ 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 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. 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 ## Copyright / Licensing
``` ```
waituntil - a tool for delaying command execution until the specified time waituntil - a tool for delaying command execution until the specified time
Copyright (C) 2022 Jonas Tobias Hopusch Copyright (C) 2021 Jonas Tobias Hopusch
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as it under the terms of the GNU Affero General Public License as

View file

@ -1,24 +1,16 @@
import java.io.ByteArrayOutputStream
import java.io.OutputStream
plugins { plugins {
// Apply the application plugin to add support for building a CLI application in Java. // Apply the application plugin to add support for building a CLI application in Java.
application application
java
}
repositories { // For generating fat jars
// Use Maven Central for resolving dependencies. id("com.github.johnrengelman.shadow") version "latest.release"
mavenCentral()
} }
fun versionBanner(): String { fun versionBanner(): String {
val os = ByteArrayOutputStream() val os = org.apache.commons.io.output.ByteArrayOutputStream()
val devNull = OutputStream.nullOutputStream()
project.exec { project.exec {
commandLine = "git describe --tags --always --dirty --abbrev".split(" ") commandLine = "git describe --always --dirty".split(" ")
standardOutput = os standardOutput = os
errorOutput = devNull
} }
return String(os.toByteArray()).trim() return String(os.toByteArray()).trim()
} }
@ -26,6 +18,11 @@ fun versionBanner(): String {
group = "de.jotoho" group = "de.jotoho"
version = versionBanner() version = versionBanner()
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
java { java {
sourceCompatibility = JavaVersion.VERSION_17 sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17

View file

@ -1 +0,0 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip

View file

@ -1,23 +1,5 @@
package de.jotoho.waituntil; 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; import java.util.Locale;
public record GlobalConf() { public record GlobalConf() {

View file

@ -1,23 +1,5 @@
package de.jotoho.waituntil; 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.HashSet;
import java.util.Map; import java.util.Map;

View file

@ -1,23 +1,5 @@
package de.jotoho.waituntil; 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.Instant;
import java.time.ZonedDateTime; import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;

View file

@ -1,23 +1,5 @@
package de.jotoho.waituntil; 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.Instant;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.LocalTime; import java.time.LocalTime;