์๋ ,
CLI ๋ช ๋ น์ ์๋ํํ๋ ๋ฐ ์ฌ์ฉํ ์์๋ macOS ์ฉ ๊ธฐ์ ์ ์ฐพ์ผ๋ ค๊ณ ํฉ๋๋ค. Like Expect https://en.wikipedia.org/wiki/Expect
๊ทธ๋ ๋ค๋ฉด PowerShell์ ์ฌ์ฉํ ์ ์์ต๋๊น?
์กฐ์ธํ์ญ์์ค.
์ค๋๋ PowerShell์์ ์ฝ๊ฒ ํ ์ ์๋ค๊ณ ์๊ฐํ์ง ์์ง๋ง PowerShell์ ์ฌ์ฉํ์ฌ ์ฝ์ ์ฑ์ stdin / stdout์ ๋ฆฌ๋๋ ์ ํ๋ ๋ฐฉ๋ฒ์ด ์์ต๋๋ค. ์๋ง๋ DSL์ ์ฌ์ฉํ ์์๊ฒ๋๋ฉด ๋ ๋์ ์ง์์๋ฐ์ ์์์ ๊ฒ์ ๋๋ค.
๊ทธ๋ฌ๋ ์ง๊ธ์ PowerShell ๋ด์์ Expect๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
PowerShell์์ Expect๋ฅผ ๋ชจ๋ฐฉํด์ผํ๋ PowerShell ๋ชจ๋์ด ์์ต๋๋ค. https://www.powershellgallery.com/packages/Await/0.8
@rkeithhill ๊ต์ฅํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
PowerShell์์ Expect๋ฅผ ๋ชจ๋ฐฉํด์ผํ๋ PowerShell ๋ชจ๋์ด ์์ต๋๋ค. https://www.powershellgallery.com/packages/Await/0.8