Skip to content

Commit

Permalink
Added some TODOs (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitramu authored Aug 27, 2023
1 parent 9102496 commit 6d62210
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cli/implementation/cli_cobra/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ func addFlag[T any](
}

// Get default value.
var defaultValue T
defaultValue = modelFlag.GetDefaultValue(config)
var defaultValue = modelFlag.GetDefaultValue(config)

// Cobra can't handle a nil pointer.
if modelFlag.GetValueRef() == nil {
Expand Down
2 changes: 2 additions & 0 deletions pkg/utils/template_repository/types_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"github.com/rohitramu/kpm/pkg/utils/template_package"
)

// TODO: Add a repo type for git.

type Repository interface {
GetName() string
GetType() string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (result *RepositoryCollection) UnmarshalYAML(unmarshaller *yaml.Node) (err
}

func (rc *RepositoryCollection) MarshalYAML() (any, error) {
// TODO: Implement a way to write a config file.
return nil, errors.New("not yet implemented")
}

Expand Down

0 comments on commit 6d62210

Please sign in to comment.