@@ -34,25 +34,25 @@ public static ValueSource<T> Create<T>(CliValueSymbol otherSymbol,
34
34
Func < object ? , ( bool success , T ? value ) > ? calculation = null ,
35
35
bool userEnteredValueOnly = false ,
36
36
string ? description = null )
37
- => new RelativeToSymbolValueSource < T > ( otherSymbol , calculation , userEnteredValueOnly , description ) ;
37
+ => new SymbolValueSource < T > ( otherSymbol , calculation , userEnteredValueOnly , description ) ;
38
38
39
39
public static ValueSource < T > Create < T > (
40
40
Func < IEnumerable < object ? > , ( bool success , T ? value ) > calculation ,
41
41
bool userEnteredValueOnly = false ,
42
42
string ? description = null ,
43
43
params CliValueSymbol [ ] otherSymbols )
44
- => new RelativeToSymbolsValueSource < T > ( calculation , userEnteredValueOnly , description , otherSymbols ) ;
44
+ => new CollectionValueSource < T > ( calculation , userEnteredValueOnly , description , otherSymbols ) ;
45
45
46
46
public static ValueSource < T > Create < T > ( ValueSource < T > firstSource ,
47
47
ValueSource < T > secondSource ,
48
48
string ? description = null ,
49
49
params ValueSource < T > [ ] otherSources )
50
- => new AggregateValueSource < T > ( firstSource , secondSource , description , otherSources ) ;
50
+ => new FallbackValueSource < T > ( firstSource , secondSource , description , otherSources ) ;
51
51
52
52
public static ValueSource < T > CreateFromEnvironmentVariable < T > ( string environmentVariableName ,
53
53
Func < string ? , ( bool success , T ? value ) > ? calculation = null ,
54
54
string ? description = null )
55
- => new RelativeToEnvironmentVariableValueSource < T > ( environmentVariableName , calculation , description ) ;
55
+ => new EnvironmentVariableValueSource < T > ( environmentVariableName , calculation , description ) ;
56
56
}
57
57
58
58
// TODO: Determine philosophy for custom value sources and whether they can build on existing sources.
@@ -84,7 +84,7 @@ public override bool TryGetValue(PipelineResult pipelineResult,
84
84
85
85
public static implicit operator ValueSource < T > ( T value ) => new SimpleValueSource < T > ( value ) ;
86
86
public static implicit operator ValueSource < T > ( Func < ( bool success , T ? value ) > calculated ) => new CalculatedValueSource < T > ( calculated ) ;
87
- public static implicit operator ValueSource < T > ( CliValueSymbol symbol ) => new RelativeToSymbolValueSource < T > ( symbol ) ;
87
+ public static implicit operator ValueSource < T > ( CliValueSymbol symbol ) => new SymbolValueSource < T > ( symbol ) ;
88
88
// Environment variable does not have an explicit operator, because converting to string was too broad
89
89
}
90
90
0 commit comments