MCPcopy Create free account
hub / github.com/UiPath/uipathcli / fileInput

Method fileInput

commandline/command_builder.go:41–55  ·  view source on GitHub ↗
(context *CommandExecContext, parameters []parser.Parameter)

Source from the content-addressed store, hash-verified

39}
40
41func (b CommandBuilder) fileInput(context *CommandExecContext, parameters []parser.Parameter) stream.Stream {
42 value := context.String(FlagNameFile)
43 if value == "" {
44 return nil
45 }
46 if value == FlagValueFromStdIn {
47 return b.Input
48 }
49 for _, param := range parameters {
50 if strings.EqualFold(param.FieldName, FlagNameFile) {
51 return nil
52 }
53 }
54 return stream.NewFileStream(value)
55}
56
57func (b CommandBuilder) createExecutionParameter(context *CommandExecContext, config *config.Config, param parser.Parameter) (*executor.ExecutionParameter, error) {
58 typeConverter := newTypeConverter()

Callers 1

Calls 2

NewFileStreamFunction · 0.92
StringMethod · 0.80

Tested by

no test coverage detected