Skip to content

Commit 923003d

Browse files
committed
(feat) allow tf commands to run without local sources
1 parent 70700a0 commit 923003d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/pterm.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ func StartSources(ctx context.Context, cmd *cobra.Command, args []string) (conte
7474
return ctx, sdp.OvermindInstance{}, nil, nil, err
7575
}
7676

77+
// use only-use-managed-sources flag to determine if we should start local sources
78+
if viper.GetBool("only-use-managed-sources") {
79+
return ctx, oi, token, nil, nil
80+
}
7781
cleanup, err := StartLocalSources(ctx, oi, token, args, false)
7882
if err != nil {
7983
return ctx, sdp.OvermindInstance{}, nil, nil, err

0 commit comments

Comments
 (0)