Skip to content

Commit 8db73fe

Browse files
committed
+"Provides at least the following" in readme
1 parent 7815eaf commit 8db73fe

2 files changed

Lines changed: 192 additions & 1 deletion

File tree

Readme.md

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ https://github.com/3F/SobaScript
1212
[![NuGet package](https://img.shields.io/nuget/v/SobaScript.Z.Ext.svg)](https://www.nuget.org/packages/SobaScript.Z.Ext/)
1313
[![Tests](https://img.shields.io/appveyor/tests/3Fs/sobascript-z-ext/master.svg)](https://ci.appveyor.com/project/3Fs/sobascript-z-ext/build/tests)
1414

15-
[![Build history](https://buildstats.info/appveyor/chart/3Fs/SobaScript.Z.Ext?buildCount=20&showStats=true)](https://ci.appveyor.com/project/3Fs/SobaScript.Z.Ext/history)
15+
[![Build history](https://buildstats.info/appveyor/chart/3Fs/sobascript-z-ext?buildCount=20&showStats=true)](https://ci.appveyor.com/project/3Fs/sobascript-z-ext/history)
1616

1717
## License
1818

@@ -26,3 +26,108 @@ Copyright (c) 2014-2019 Denis Kuzmin < x-3F@outlook.com > GitHub/3F
2626

2727
SobaScript.Z.Ext contributors: https://github.com/3F/SobaScript.Z.Ext/graphs/contributors
2828

29+
## Provides at least the following
30+
31+
### SevenZipComponent
32+
33+
```clojure
34+
#[7z pack.files({"IntelOCL.log", "IntelChipset.log"}, "ilog.7z")]
35+
#[7z pack.files({"IntelAMT.log"}, "P:\s01\log.xml"}, "D:\output.zip", Zip, Deflate, 2)]
36+
#[7z pack.files(
37+
{
38+
"bin\gpp.exe",
39+
"bin\lib\*.dll"
40+
},
41+
"gpp.7z",
42+
{"bin\lib\stub.dll"},
43+
SevenZip, Lzma2, 4
44+
)]
45+
```
46+
47+
```clojure
48+
#[7z pack.directory("bin", "release.zip")]
49+
#[7z pack.directory("D:\log", "log.7z", SevenZip, Lzma2, 4)]
50+
```
51+
52+
```clojure
53+
#[( !#[7z check("arch.tar.xz")] ){
54+
#[Build cancel = true]
55+
}]
56+
57+
#[var arch = #[7z check("arch.tar.xz", "pass-123")]]
58+
```
59+
60+
```clojure
61+
#[7z unpack("release.7z", true)]
62+
#[7z unpack("xscale.zip", "D:\app\xscale", false, "pass-123")]
63+
```
64+
65+
### NuGetComponent
66+
67+
Through [GetNuTool](https://github.com/3F/GetNuTool).
68+
69+
```clojure
70+
#[NuGet gnt.raw("/p:ngpackages=\"7z.Libs/19.0.1;vsSBE.CI.MSBuild/1.6.12011:../packages/CI.MSBuild\"")]
71+
```
72+
73+
```clojure
74+
#[NuGet gnt.raw("/t:pack /p:ngin=\"D:\tmp\7z.Libs\" /p:ngout=\"newdir/\"")]
75+
```
76+
77+
### FileComponent
78+
79+
I/O local and remote operations.
80+
81+
```clojure
82+
#[File replace.Regex("source.csproj", "<Version>[0-9.]+</Version>", "<Version>$(version)</Version>")]
83+
#[File replace.Regex("file.log", "(\d+)", "~$1~")]
84+
```
85+
86+
```clojure
87+
#[( #[IO exists.directory("D:\tmp\log")] ){
88+
...
89+
}]
90+
```
91+
92+
```clojure
93+
#[IO copy.file("bin\release.7z", "$(out)dep\release.7z", true)]
94+
#[IO copy.file("D:\inc\*.h", "$(SolutionDir)inc/", false, {"ui.core.h", "http.h"})]
95+
#[File appendLine("in.log"): mixed data]
96+
```
97+
98+
```clojure
99+
#[IO copy.file({
100+
"bin\client.zip",
101+
"bin\server\*.*"
102+
},
103+
"$(plugin)\beta",
104+
true,
105+
{
106+
"*debug*",
107+
"*.pdb"
108+
})]
109+
```
110+
111+
```clojure
112+
#[IO copy.directory("bin", "$(out)dep/mixed", true)]
113+
```
114+
115+
```clojure
116+
#[IO remote.download("ftp://192.168.17.04:2021/dir1/non-api.png", "non-api.png", "usr", "pwd")]
117+
#[IO remote.download("http://example.com", "example.com.html")]
118+
```
119+
120+
### FunctionComponent
121+
122+
mixed functions, such as:
123+
124+
```clojure
125+
#[Func hash.MD5("Hello World!")]
126+
ED076287532E86365E841E92BFC50D8C
127+
```
128+
129+
130+
```clojure
131+
#[Func hash.SHA1("Hello World!")]
132+
2EF7BDE608CE5404E97D5F042F95F89F1C232871
133+
```

SobaScript.Z.Ext/SobaScript.Z.Ext.csproj

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,92 @@
1717
<Title>Core components for SobaScript</Title>
1818
<Description>Extended Core components for SobaScript -- Extensible Modular Scripting Programming Language
1919

20+
https://github.com/3F/SobaScript
21+
22+
Provides at least the following:
23+
24+
* SevenZipComponent
25+
26+
```
27+
#[7z pack.files({"IntelOCL.log", "IntelChipset.log"}, "ilog.7z")]
28+
#[7z pack.files({"IntelAMT.log"}, "P:\s01\log.xml"}, "D:\output.zip", Zip, Deflate, 2)]
29+
#[7z pack.files(
30+
{
31+
"bin\gpp.exe",
32+
"bin\lib\*.dll"
33+
},
34+
"gpp.7z",
35+
{"bin\lib\stub.dll"},
36+
SevenZip, Lzma2, 4
37+
)]
38+
```
39+
40+
```
41+
#[7z pack.directory("bin", "release.zip")]
42+
#[7z pack.directory("D:\log", "log.7z", SevenZip, Lzma2, 4)]
43+
```
44+
45+
```
46+
#[( !#[7z check("arch.tar.xz")] ){
47+
#[Build cancel = true]
48+
}]
49+
50+
#[var arch = #[7z check("arch.tar.xz", "pass-123")]]
51+
```
52+
53+
```
54+
#[7z unpack("release.7z", true)]
55+
#[7z unpack("xscale.zip", "D:\app\xscale", false, "pass-123")]
56+
```
57+
58+
* NuGetComponent
59+
60+
Through [GetNuTool](https://github.com/3F/GetNuTool).
61+
62+
```
63+
#[NuGet gnt.raw("/p:ngpackages=\"7z.Libs/19.0.1;vsSBE.CI.MSBuild/1.6.12011:../packages/CI.MSBuild\"")]
64+
#[NuGet gnt.raw("/t:pack /p:ngin=\"D:\tmp\7z.Libs\" /p:ngout=\"newdir/\"")]
65+
```
66+
67+
* FileComponent
68+
69+
I/O local and remote operations.
70+
71+
```
72+
#[File replace.Regex("file.log", "(\d+)", "~@1~")]
73+
#[( #[IO exists.directory("D:\tmp\log")] ){
74+
...
75+
}]
76+
```
77+
78+
```
79+
#[IO copy.file("bin\release.7z", "@(out)dep\release.7z", true)]
80+
#[IO copy.file("D:\inc\*.h", "@(SolutionDir)inc/", false, {"ui.core.h", "http.h"})]
81+
#[File appendLine("in.log"): mixed data]
82+
```
83+
84+
```
85+
#[IO copy.file({
86+
"bin\client.zip",
87+
"bin\server\*.*"
88+
},
89+
"@(plugin)\beta",
90+
true,
91+
{
92+
"*debug*",
93+
"*.pdb"
94+
})]
95+
```
96+
97+
```
98+
#[IO copy.directory("bin", "@(out)dep/mixed", true)]
99+
100+
#[IO remote.download("ftp://192.168.17.04:2021/dir1/non-api.png", "non-api.png", "usr", "pwd")]
101+
#[IO remote.download("http://example.com", "example.com.html")]
102+
```
103+
104+
...
105+
20106
https://github.com/3F/SobaScript.Z.Ext
21107

22108
=======================================

0 commit comments

Comments
 (0)