Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var attachCmd = &cobra.Command{
return err
}

return runAttach(context.Background(), args[0])
return runAttach(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var buildCmd = &cobra.Command{
return err
}

return runBuild(context.Background(), args[0])
return runBuild(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var extractCmd = &cobra.Command{
return err
}

return runExtract(context.Background(), args[0])
return runExtract(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var fetchCmd = &cobra.Command{
return err
}

return runFetch(context.Background(), args[0])
return runFetch(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var inspectCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runInspect(context.Background(), args[0])
return runInspect(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var listCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runList(context.Background())
return runList(cmd.Context())
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var logoutCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runLogout(context.Background(), args[0])
return runLogout(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/modelfile/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Full URLs with domain names will auto-detect the provider.`,
return err
}

return runGenerate(context.Background())
return runGenerate(cmd.Context())
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var pruneCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runPrune(context.Background())
return runPrune(cmd.Context())
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var pullCmd = &cobra.Command{
return err
}

return runPull(context.Background(), args[0])
return runPull(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var pushCmd = &cobra.Command{
return err
}

return runPush(context.Background(), args[0])
return runPush(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var rmCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runRm(context.Background(), args[0])
return runRm(cmd.Context(), args[0])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var tagCmd = &cobra.Command{
SilenceUsage: true,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
RunE: func(cmd *cobra.Command, args []string) error {
return runTag(context.Background(), args[0], args[1])
return runTag(cmd.Context(), args[0], args[1])
},
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var uploadCmd = &cobra.Command{
return err
}

return runUpload(context.Background(), args[0])
return runUpload(cmd.Context(), args[0])
},
Comment thread
chlins marked this conversation as resolved.
}

Expand Down
Loading