MCPcopy
hub / github.com/larksuite/cli / ResolveFileIO

Method ResolveFileIO

internal/cmdutil/factory.go:53–58  ·  view source on GitHub ↗

ResolveFileIO resolves a FileIO instance using the current execution context. The provider controls whether the returned instance is fresh or cached.

(ctx context.Context)

Source from the content-addressed store, hash-verified

51// ResolveFileIO resolves a FileIO instance using the current execution context.
52// The provider controls whether the returned instance is fresh or cached.
53func (f *Factory) ResolveFileIO(ctx context.Context) fileio.FileIO {
54 if f == nil || f.FileIOProvider == nil {
55 return nil
56 }
57 return f.FileIOProvider.ResolveFileIO(ctx)
58}
59
60// ResolveAs returns the effective identity type.
61// If the user explicitly passed --as, use that value; otherwise use the configured default.

Callers

nothing calls this directly

Calls 1

ResolveFileIOMethod · 0.65

Tested by

no test coverage detected