Skip to content

Commit

Permalink
Merge pull request #242 from zong-zhe/add-helloworld-schema
Browse files Browse the repository at this point in the history
feat: add schema and schema instance to package helloworld
  • Loading branch information
zong-zhe authored Oct 12, 2024
2 parents ab23503 + 13eca5a commit af6e386
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions helloworld/0.1.3/kcl.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "helloworld"
edition = "*"
version = "0.1.3"
description = "This is a hello world package that contains a schema and a schema instance"

Empty file added helloworld/0.1.3/kcl.mod.lock
Empty file.
8 changes: 8 additions & 0 deletions helloworld/0.1.3/main.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
schema HelloWorldSchema:
msg: str

The_fisrt_schema_inst = HelloWorldSchema{
msg: "Hello Schema!"
}

The_first_kcl_program = 'Hello World!'
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func TestUpdateReadmeAndMetadata(t *testing.T) {
pwd, err := os.Getwd()
assert.Equal(t, nil, err)
testDir := filepath.Join(pwd, "helloworld")
testDir := filepath.Join(pwd, "helloworld", "0.1.2")
modPath := filepath.Join(testDir, "kcl.mod")
ahPath := filepath.Join(".integration", "artifacthub", "helloworld", "0.1.2", "artifacthub-pkg.yaml")

Expand Down

0 comments on commit af6e386

Please sign in to comment.