File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
- namespace rec Fun.Build
1
+ namespace rec Fun.Build
2
2
3
3
open System
4
4
open System.Threading
@@ -493,6 +493,17 @@ module StageContextExtensions =
493
493
// If not find then return ""
494
494
member inline ctx.GetEnvVar ( key : string ) = ctx.TryGetEnvVar key |> ValueOption.defaultValue " "
495
495
496
+ /// <summary>
497
+ /// Get the command arguments from the command line without the remaining arguments that are placed after <c>--</c>.
498
+ ///
499
+ /// For example, if you run the following arguments:
500
+ ///
501
+ /// <c> -p demo test1 v1 -- test2 v2</c>
502
+ ///
503
+ /// will return
504
+ ///
505
+ /// <c>[ "-p"; "demo"; "test1"; "v1" ]</c>
506
+ /// </summary>
496
507
member ctx.GetAllCmdArgs () =
497
508
match ctx.ParentContext with
498
509
| ValueSome( StageParent.Pipeline p) -> p.CmdArgs
You can’t perform that action at this time.
0 commit comments