Skip to content

Commit

Permalink
fix: add 'Deprecated' for RunWithOpt
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Dec 21, 2023
1 parent 9ae1cb2 commit f6f8802
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/kpm_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func RunPkgInPath(opts *opt.CompileOptions) (string, error) {
}

// CompileWithOpt will compile the kcl program without kcl package.
// Deprecated: This method will not be maintained in the future. Use RunWithOpts instead.
func RunWithOpt(opts *opt.CompileOptions) (*kcl.KCLResultList, error) {
if len(opts.Entries()) > 0 {
for _, entry := range opts.Entries() {
Expand Down

0 comments on commit f6f8802

Please sign in to comment.