Author: Çağatay Yücelen
Get the output of a shell command as string to use it in Tiltfile.
local_output
runs given command and strips trailing \n
.
Pass a command to execute with local.
desired_memory_capacity = "4096"
current_memory_capacity = local_output('minikube config get memory') # e.g. "2048"
if int(current_memory_capacity) < int(desired_memory_capacity):
local('minikube config set memory {}'.format(desired_memory_capacity))
local('minikube delete')
local('minikube start')
command
: shell command to execute withlocal
function