File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System . Text ;
2
+ using System . Text . Unicode ;
2
3
3
4
namespace Flucli . Test ;
4
5
@@ -8,7 +9,24 @@ static void Main(string[] args)
8
9
{
9
10
Task . Run ( async ( ) =>
10
11
{
12
+ // ---
11
13
Console . WriteLine ( "CASE1" ) ;
14
+ {
15
+ CliResult result = await @"D:\ema\utils\DouyinLiveRecorder\DouyinLiveRecorder.v3.0.8\DouyinLiveRecorder.exe"
16
+ . WithArguments ( "" )
17
+ . WithStandardErrorPipe ( PipeTarget . ToDelegate ( ( a ) =>
18
+ {
19
+ Console . WriteLine ( a ) ;
20
+ } , Encoding . UTF8 ) )
21
+ . ExecuteAsync ( ) ;
22
+
23
+ Console . WriteLine ( "ExitCode is " + result . ExitCode ) ;
24
+ }
25
+ Console . ReadLine ( ) ;
26
+ Console . WriteLine ( "---" ) ;
27
+
28
+ // ---
29
+ Console . WriteLine ( "CASE2" ) ;
12
30
{
13
31
CliResult result = await "cmd"
14
32
. WithArguments ( "/c echo Hello World!" )
@@ -18,7 +36,8 @@ static void Main(string[] args)
18
36
}
19
37
Console . WriteLine ( "---" ) ;
20
38
21
- Console . WriteLine ( "CASE2" ) ;
39
+ // ---
40
+ Console . WriteLine ( "CASE3" ) ;
22
41
{
23
42
StringBuilder stdout = new ( ) ;
24
43
StringBuilder stderr = new ( ) ;
@@ -39,7 +58,8 @@ static void Main(string[] args)
39
58
}
40
59
Console . WriteLine ( "---" ) ;
41
60
42
- Console . WriteLine ( "CASE3" ) ;
61
+ // ---
62
+ Console . WriteLine ( "CASE4" ) ;
43
63
{
44
64
StringBuilder stdout = new ( ) ;
45
65
StringBuilder stderr = new ( ) ;
You can’t perform that action at this time.
0 commit comments