Skip to content

Commit d562864

Browse files
committed
save
1 parent 34bca69 commit d562864

File tree

8 files changed

+43
-13
lines changed

8 files changed

+43
-13
lines changed

license.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# The MIT License (MIT)
2+
3+
Copyright © 2023-2024 TermSurf
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the “Software”), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

load/choco/task.nuspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
<bugTrackerUrl>https://github.com/termsurf/task/issues</bugTrackerUrl>
1212
<packageSourceUrl>https://github.com/termsurf/task</packageSourceUrl>
1313
<projectUrl>https://github.com/termsurf/task</projectUrl>
14+
<licenseUrl>https://github.com/termsurf/task/blob/make/license.md</licenseUrl>
1415
<dependencies>
15-
<dependency id="libreoffice-fresh" />
16-
<dependency id="imagemagick" />
16+
<dependency id="libreoffice-fresh" version="7.*" />
17+
<dependency id="imagemagick" version="7.*" />
1718
<dependency id="fontforge" />
1819
<dependency id="ffmpeg" />
1920
<dependency id="miktex.install" />

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pnpm run task convert -I png -O jpg -i image.png -o image.jpg
113113
./test/cli.sh
114114
```
115115

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

118118
## Development
119119

test/cli.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
trap "exit" INT
32
set -e
43

@@ -7,6 +6,12 @@ rm -rf test/hold
76
mkdir test/hold
87
mkdir test/hold/pdf
98

9+
function call() {
10+
line="$1"
11+
echo " \033[0;90mcall <\033[0m\033[0;35m$line\033[0m\033[0;90m>\033[0m"
12+
eval "$line"
13+
}
14+
1015
cp test/file/code/example.rs test/hold/example.rs
1116
# cp test/file/code/example.c test/hold/example.c
1217
# cp test/file/code/quicksort.jl test/hold/quicksort.jl
@@ -38,16 +43,16 @@ cp test/file/code/example.rs test/hold/example.rs
3843
alias task="pnpm tsx code/cli"
3944

4045
# # convert and verify
41-
task convert -I png -O jpg -i test/file/image/fire.png -o test/hold/fire.jpg
42-
task verify jpg -i test/hold/fire.jpg
46+
call "task convert -I png -O jpg -i test/file/image/fire.png -o test/hold/fire.jpg"
47+
call "task verify jpg -i test/hold/fire.jpg"
4348

44-
task convert -I cr2 -O jpg -i test/file/image/trees.cr2 -o test/hold/trees.jpg
45-
task verify jpg -i test/hold/trees.jpg
49+
call "task convert -I cr2 -O jpg -i test/file/image/trees.cr2 -o test/hold/trees.jpg"
50+
call "task verify jpg -i test/hold/trees.jpg"
4651

4752
# # task convert -I rar -i test/file/archive/archive.rar -O zip -o test/hold/archive.rar.zip
4853

49-
task convert -I ttf -O woff -i test/file/font/etch.ttf -o test/hold/etch.woff
50-
task convert -I epub -O mobi -i test/file/document/childrens-literature.epub -o test/hold/childrens-literature.mobi
54+
call "task convert -I ttf -O woff -i test/file/font/etch.ttf -o test/hold/etch.woff"
55+
call "task convert -I epub -O mobi -i test/file/document/test.epub -o test/hold/test.mobi"
5156
# task convert -I docx -O markdown -i test/file/document/sample.docx -o test/hold/sample.docx.markdown
5257
# task convert -I docx -O pdf -i test/file/document/sample.docx -b test/hold/pdf -n document
5358
# task convert -I mkv -O dvd -i test/file/document/example.mkv -o test/hold/example.mkv.dvd
File renamed without changes.
File renamed without changes.

view/test-line.gif

Lines changed: 3 additions & 0 deletions
Loading

view/test-show.gif

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)