build: add the X option to the stack directive.

This commit is contained in:
Alexandre Pujol 2024-09-10 18:13:48 +01:00
parent 67c5181ba9
commit f3094cc741
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 30 additions and 8 deletions

View file

@ -7,6 +7,7 @@
package directive
import (
"fmt"
"slices"
"strings"
@ -30,6 +31,9 @@ func init() {
}
func (d Exec) Apply(opt *Option, profileRaw string) (string, error) {
if len(opt.ArgList) == 0 {
return "", fmt.Errorf("No profile to exec")
}
transition := "Px"
transitions := []string{"P", "U", "p", "u", "PU", "pu"}
t := opt.ArgList[0]