Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed Jan 23, 2024
1 parent 34bca69 commit d562864
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 13 deletions.
24 changes: 24 additions & 0 deletions license.md
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 3 additions & 2 deletions load/choco/task.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
<bugTrackerUrl>https://github.com/termsurf/task/issues</bugTrackerUrl>
<packageSourceUrl>https://github.com/termsurf/task</packageSourceUrl>
<projectUrl>https://github.com/termsurf/task</projectUrl>
<licenseUrl>https://github.com/termsurf/task/blob/make/license.md</licenseUrl>
<dependencies>
<dependency id="libreoffice-fresh" />
<dependency id="imagemagick" />
<dependency id="libreoffice-fresh" version="7.*" />
<dependency id="imagemagick" version="7.*" />
<dependency id="fontforge" />
<dependency id="ffmpeg" />
<dependency id="miktex.install" />
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pnpm run task convert -I png -O jpg -i image.png -o image.jpg
./test/cli.sh
```

<img src='https://github.com/termsurf/task/blob/make/view/test-show.gif?raw=true' width="768" />
<img src='https://github.com/termsurf/task/blob/make/view/test-line.gif?raw=true' />

## Development

Expand Down
19 changes: 12 additions & 7 deletions test/cli.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

trap "exit" INT
set -e

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions view/test-line.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions view/test-show.gif

This file was deleted.

0 comments on commit d562864

Please sign in to comment.