We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c4884 commit 81bc6d5Copy full SHA for 81bc6d5
src/main/kotlin/Main.kt
@@ -1,5 +1,5 @@
1
package io.github.amirisback
2
3
fun main() {
4
- showText("ABCDEFGHIJKLMNOPQRSTUVWQYZ")
+ runPrompt(PROMPT_SHUTDOWN_SET)
5
}
src/main/kotlin/WindowsPrompt.kt
@@ -0,0 +1,8 @@
+package io.github.amirisback
+
+fun runPrompt(rule: String) {
+ Runtime.getRuntime().exec(rule)
+}
6
7
+const val PROMPT_SHUTDOWN_SET = "shutdown -s -t 3600"
8
+const val PROMPT_SHUTDOWN_CANCEL = "shutdown -a"
0 commit comments