Skip to content

Commit

Permalink
add dm alias to datamodel, update test cases for structural
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Sep 9, 2020
1 parent 57d6d6f commit 014f411
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/datamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var DatamodelCmd = &cobra.Command{

Aliases: []string{
"dmod",
"dm",
},

Short: "create, view, diff, calculate / migrate, and manage your data models",
Expand Down
1 change: 1 addition & 0 deletions cmd/hof/cmd/datamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var DatamodelCmd = &cobra.Command{

Aliases: []string{
"dmod",
"dm",
},

Short: "create, view, diff, calculate / migrate, and manage your data models",
Expand Down
2 changes: 1 addition & 1 deletion design/cli/cmds/datamodel.cue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
TBD: "α"
Name: "datamodel"
Usage: "datamodel"
Aliases: ["dmod"]
Aliases: ["dmod", "dm"]
Short: "create, view, diff, calculate / migrate, and manage your data models"
Long: Short

Expand Down
2 changes: 2 additions & 0 deletions lib/structural/testdata/000_shared_examples.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package testdata

@examples(shared)
#SharedExamples: {

Expand Down
25 changes: 21 additions & 4 deletions lib/structural/testdata/merge_cases.cue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,30 @@ package testdata
@cases(merge)
#MergeCases: {
@group(simple)
simple: {
edge: {
t_0001: {
args: {
orig: #SharedExamples.A
merge: {a: "a", N: {x: "x"}}
orig: {a: "a"}
merge: {}
}
ex: {a: "a", b: "b", N: {x: "x", y: "y"}}
ex: {a: "a"}
}
t_0002: {
args: {
orig: {}
merge: {a: "a"}
}
ex: {a: "a"}
}
}
//@group(simple)
//simple: {
//t_0002: {
//args: {
//orig: #SharedExamples.A
//merge: {a: "a", N: {x: "x"}}
//}
//ex: {a: "a", b: "b", N: {x: "x", y: "y"}}
//}
//}
}

0 comments on commit 014f411

Please sign in to comment.