@@ -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
2727SobaScript.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+ #[7 z pack.files({" IntelOCL.log" , " IntelChipset.log" }, " ilog.7z" )]
35+ #[7 z pack.files({" IntelAMT.log" }, " P:\s 01\l og.xml" }, " D:\o utput.zip" , Zip, Deflate, 2 )]
36+ #[7 z pack.files(
37+ {
38+ " bin\g pp.exe" ,
39+ " bin\l ib\* .dll"
40+ },
41+ " gpp.7z" ,
42+ {" bin\l ib\s tub.dll" },
43+ SevenZip, Lzma2, 4
44+ )]
45+ ```
46+
47+ ``` clojure
48+ #[7 z pack.directory("bin", " release.zip" )]
49+ #[7 z 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 = #[7 z check("arch.tar.xz", " pass-123" )]]
58+ ```
59+
60+ ``` clojure
61+ #[7 z unpack("release.7z", true )]
62+ #[7 z unpack("xscale.zip", " D:\a pp\x scale" , 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\7 z.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+ ```
0 commit comments