A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23
stars
7
forks
source link
Reslang copies to clipboard even with --stdout flag #82
Running with --stdout should not affect the clipboard
Steps to reproduce:
# Copy some unrelated text to clipboard
$ pbpaste
foo%
# Run reslang with --stdout flag
$ ./reslang /Users/cjapel/code/api-specs/platform-validation/ --stdout
# generated by Reslang v1.4.1
# <snip>
# Clipboard gets overwritten
$ pbpaste
# generated by Reslang v1.4.1
# <snip>
Besides being an unexpected result, this also causes issues with the docker container. Even if the container is run with --stdout, the clipboardy module errors with Both xsel and fallback failed (since the container can't access the clipboard)
Expected behavior
Running with
--stdout
should not affect the clipboardSteps to reproduce:
Besides being an unexpected result, this also causes issues with the docker container. Even if the container is run with
--stdout
, the clipboardy module errors withBoth xsel and fallback failed
(since the container can't access the clipboard)