Skip to content

Latest commit

 

History

History
 
 

local_output

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

local_output

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.

Usage

Pass a command to execute with local.

Example:

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')

Arguments:

  • command: shell command to execute with local function