Compare commits

...

3 Commits

Author SHA1 Message Date
Omdanii
08865d100b Merge pull request #29 from freeflowuniverse/development_actions_fix
refactor: improve action heroscript output
2025-01-22 15:21:04 +02:00
b6d43ebe49 refactor: improve action heroscript output
- Update `action.heroscript()` to handle `dal` actions.
- Remove buggy action print from panic message which led to an infinite
  recursive call.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-22 14:10:54 +02:00
03e5a56d62 Merge pull request #23 from freeflowuniverse/development_release
feat: support macos in ci
2025-01-17 17:06:26 +02:00

View File

@@ -43,12 +43,15 @@ pub fn (action Action) heroscript() string {
if action.comments.len > 0 {
out += texttools.indent(action.comments, '// ')
}
if action.actiontype == .sal {
if action.actiontype == .dal {
out += '!'
} else if action.actiontype == .sal {
out += '!!'
} else if action.actiontype == .macro {
out += '!!!'
} else {
panic('only action sal and macro supported for now,\n${action}')
panic('only action sal and macro supported for now')
}
if action.actor != '' {