https://github.com/mneedham/cliclick_generator
https://github.com/mneedham/cliclick_generator
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mneedham/cliclick_generator
- Owner: mneedham
- Created: 2023-02-28T09:32:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-06T21:38:16.000Z (about 3 years ago)
- Last Synced: 2025-02-14T13:50:24.613Z (over 1 year ago)
- Language: Python
- Size: 75.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cliclick Generator
This is a DSL that generates a list of commands for [cliclick](https://github.com/BlueM/cliclick).
## Usage
Create a file that contains some DSL commands, like `examples/example1.txt`:
examples/example1.txt
```
#select window
selectWindow:2
#select tab
selectTab:2
#datagen
clearScreen
```
Call the generate command
```
python generate.py --file-name examples/example1.txt
```
Output
```
# select
kd:alt
t:2
ku:alt
# select
kd:cmd
t:2
ku:cmd
# datagen
kd:ctrl
t:lu
ku:ctrl
ku:fn
w:500
```
Look into this markdown parser:
https://github.com/executablebooks/markdown-it-py