-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli-branch-for-new-studio-frontend (#91)
* check for duplicate names inside system, modules, etc... * experimental ordered collection * fix broken tests * branch for new frontend
- Loading branch information
Showing
28 changed files
with
373 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package idl | ||
|
||
import "github.com/apigear-io/cli/pkg/model" | ||
|
||
func LoadIdlFromString(name string, content string) (*model.System, error) { | ||
system := model.NewSystem(name) | ||
parser := NewParser(system) | ||
err := parser.ParseString(content) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return system, nil | ||
} | ||
|
||
func LoadIdlFromFiles(name string, files []string) (*model.System, error) { | ||
system := model.NewSystem(name) | ||
for _, file := range files { | ||
parser := NewParser(system) | ||
err := parser.ParseFile(file) | ||
if err != nil { | ||
return nil, err | ||
} | ||
} | ||
return system, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.