diff --git a/license.md b/license.md new file mode 100644 index 0000000..8d57443 --- /dev/null +++ b/license.md @@ -0,0 +1,24 @@ +# The MIT License (MIT) + +Copyright © 2023-2024 TermSurf + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/load/choco/task.nuspec b/load/choco/task.nuspec index d2fc0ef..57c378c 100644 --- a/load/choco/task.nuspec +++ b/load/choco/task.nuspec @@ -11,9 +11,10 @@ https://github.com/termsurf/task/issues https://github.com/termsurf/task https://github.com/termsurf/task + https://github.com/termsurf/task/blob/make/license.md - - + + diff --git a/readme.md b/readme.md index 9177131..b9fbfa2 100644 --- a/readme.md +++ b/readme.md @@ -113,7 +113,7 @@ pnpm run task convert -I png -O jpg -i image.png -o image.jpg ./test/cli.sh ``` - + ## Development diff --git a/test/cli.sh b/test/cli.sh index 43dd5a6..0160253 100755 --- a/test/cli.sh +++ b/test/cli.sh @@ -1,4 +1,3 @@ - trap "exit" INT set -e @@ -7,6 +6,12 @@ rm -rf test/hold mkdir test/hold mkdir test/hold/pdf +function call() { + line="$1" + echo " \033[0;90mcall <\033[0m\033[0;35m$line\033[0m\033[0;90m>\033[0m" + eval "$line" +} + cp test/file/code/example.rs test/hold/example.rs # cp test/file/code/example.c test/hold/example.c # cp test/file/code/quicksort.jl test/hold/quicksort.jl @@ -38,16 +43,16 @@ cp test/file/code/example.rs test/hold/example.rs alias task="pnpm tsx code/cli" # # convert and verify -task convert -I png -O jpg -i test/file/image/fire.png -o test/hold/fire.jpg -task verify jpg -i test/hold/fire.jpg +call "task convert -I png -O jpg -i test/file/image/fire.png -o test/hold/fire.jpg" +call "task verify jpg -i test/hold/fire.jpg" -task convert -I cr2 -O jpg -i test/file/image/trees.cr2 -o test/hold/trees.jpg -task verify jpg -i test/hold/trees.jpg +call "task convert -I cr2 -O jpg -i test/file/image/trees.cr2 -o test/hold/trees.jpg" +call "task verify jpg -i test/hold/trees.jpg" # # task convert -I rar -i test/file/archive/archive.rar -O zip -o test/hold/archive.rar.zip -task convert -I ttf -O woff -i test/file/font/etch.ttf -o test/hold/etch.woff -task convert -I epub -O mobi -i test/file/document/childrens-literature.epub -o test/hold/childrens-literature.mobi +call "task convert -I ttf -O woff -i test/file/font/etch.ttf -o test/hold/etch.woff" +call "task convert -I epub -O mobi -i test/file/document/test.epub -o test/hold/test.mobi" # task convert -I docx -O markdown -i test/file/document/sample.docx -o test/hold/sample.docx.markdown # task convert -I docx -O pdf -i test/file/document/sample.docx -b test/hold/pdf -n document # task convert -I mkv -O dvd -i test/file/document/example.mkv -o test/hold/example.mkv.dvd diff --git a/test/file/document/childrens-literature.epub b/test/file/document/test.epub similarity index 100% rename from test/file/document/childrens-literature.epub rename to test/file/document/test.epub diff --git a/test/file/document/childrens-literature.mobi b/test/file/document/test.mobi similarity index 100% rename from test/file/document/childrens-literature.mobi rename to test/file/document/test.mobi diff --git a/view/test-line.gif b/view/test-line.gif new file mode 100644 index 0000000..49a2d91 --- /dev/null +++ b/view/test-line.gif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f69a14907585025352c6a7b9e3da9d8af61e6a4ecc373ffc4e11f0c531b21fe +size 1400391 diff --git a/view/test-show.gif b/view/test-show.gif deleted file mode 100644 index a307721..0000000 --- a/view/test-show.gif +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1fb4af0c64947a01247eaf8c3774d9936016547733b9568a43e8826d6a13c34 -size 445045