feat(abs): automatically use the attached consoles.
This commit is contained in:
parent
b532929f5d
commit
7d6f68a95e
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,10 @@ func (b ReAttach) Apply(opt *Option, profile string) (string, error) {
|
||||||
"attach_disconnected",
|
"attach_disconnected",
|
||||||
"attach_disconnected,attach_disconnected.path=@{att}",
|
"attach_disconnected,attach_disconnected.path=@{att}",
|
||||||
)
|
)
|
||||||
|
profile = strings.ReplaceAll(profile,
|
||||||
|
"include <abstractions/consoles>",
|
||||||
|
"include <abstractions/attached/consoles>",
|
||||||
|
)
|
||||||
|
|
||||||
old := "include if exists <local/" + opt.Name + ">"
|
old := "include if exists <local/" + opt.Name + ">"
|
||||||
new := "include <abstractions/attached/base>\n " + old
|
new := "include <abstractions/attached/base>\n " + old
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue