Add new built-in function feature for remote cmd #1619
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
원격 커맨드 요청 body를 통한, built-in function 기능 제공
$$Func
로 키워드가 시작되는 경우, 빌트인 함수를 찾고 치환this
는, SSH가 실행되는 VM 또는 MCIS 자신을 의미함mcis
.vm
VM을 지정하기 위해서 MCISID.
VMID를.
로 이어서 입력함.,
로 파라미터 구분' '
로 감싸서 적용)예시
GUI 지원
MapUI에서 기능 시험 가능
(결과)
mcisId:"mc-0p8tp"
vmId:"g1-1"
vmIp:"43.203.252.48"
command:Object
0:"echo 43.203.252.48"
1:"echo http://43.203.252.48:3000"
2:"echo http://43.203.252.48:3000"
3:"echo http://18.118.95.81:3000Xhttp://3.21.93.182:3000Xhttp://3.135.198.53:3000"
stdout:Object
0:"43.203.252.48"
1:"http://43.203.252.48:3000"
2:"http://43.203.252.48:3000"
3:"http://18.118.95.81:3000Xhttp://3.21.93.182:3000Xhttp://3.135.198.53:3000"