Skip to content

A GUI tool that allows users to enter a script, execute it, and see its output side-by-side

License

Notifications You must be signed in to change notification settings

salva09/skripter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skripter

A GUI tool that allows users to enter a script, execute it, and see its output side-by-side

Required functionality:

  • Should have an editor pane and an output pane.
  • Write the script to a file and run it using /usr/bin/env swift foo.swift, or kotlinc -script foo.kts respectively.
  • Assume the script might run for a long time.
  • Show live output of the script as it executes.
  • Show errors from the execution/if the script couldn't be interpreted.
  • Show an indication whether the script is currently running.
  • Show an indication whether the exit code of the last run was non-zero.

Implement at least one of the following:

  • Highlight language keywords in a color different from the rest of the code. You may assume that keywords are not valid in other contexts, e.g. as enum member names. You may restrict yourself to 10 keywords, if more could be added easily.
  • Make location descriptions of errors (e.g. “script:2:1: error: cannot find 'foo' in scope”) clickable, so users can navigate to the exact cursor positions in code.
  • Add a mechanism to run the script multiple times. Show a progress bar as well as an estimate of the time remaining. The estimate should be based on the time elapsed for already finished runs of the batch. More recent runs should be weighted more than older ones.

Planned features

  • Add support for opening files in tabs
  • Add custom execution commands through a lambda so scripts can run in windows or other languages can be interpreted
  • Option to change the theme
  • Add the ability to read input from the console
  • Better syntax highlighting and a code completion system
  • Use Jetpack Compose for Desktop example as a base for a new UI

Built with

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A GUI tool that allows users to enter a script, execute it, and see its output side-by-side

Resources

License

Stars

Watchers

Forks