Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Kit Patella <[email protected]>
  • Loading branch information
mkcp committed Oct 24, 2024
1 parent 90adc3b commit 0802943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func preRun(cmd *cobra.Command, _ []string) error {
if cmd.Parent() == nil {
skipLogFile = true
}

// Configure the global message instance.
err := setupMessage(LogLevelCLI, skipLogFile, NoColor)
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions src/types/packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
// PackagerConfig is the main struct that the packager uses to hold high-level options.
type PackagerConfig struct {
// Context provides deadlines, cancellations, and values throughout the API.
// NOTE(mkcp): Storing ctx on structs is not recommended, but this is intended as a temporary workaround.
Context context.Context

// CreateOpts tracks the user-defined options used to create the package
Expand Down

0 comments on commit 0802943

Please sign in to comment.