feat(abs): automatically use the attached consoles.

This commit is contained in:
Alexandre Pujol 2025-04-05 20:55:29 +02:00
parent b532929f5d
commit 7d6f68a95e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -42,6 +42,10 @@ func (b ReAttach) Apply(opt *Option, profile string) (string, error) {
"attach_disconnected",
"attach_disconnected,attach_disconnected.path=@{att}",
)
profile = strings.ReplaceAll(profile,
"include <abstractions/consoles>",
"include <abstractions/attached/consoles>",
)
old := "include if exists <local/" + opt.Name + ">"
new := "include <abstractions/attached/base>\n " + old