v2 / vlib / v / fmt / tests / string_interpolation_complex_keep.vv
9 lines · 7 sloc · 199 bytes · 017ace6ea7402430a992aa0820d5e472ebca74c7
Raw
1struct Container {
2 id string
3}
4
5container := Container{}
6docker_pubkey := '1234657890'
7
8cmd := "docker exec ${container.id} sh -c 'echo \"${docker_pubkey}\" >> ~/.ssh/authorized_keys'"
9println(cmd)
10