   
 set_current = (world, args) ->
   current = world.get('current')
-  #console.log "inspect current", current, "args", args
   if args?
     current.put('selected', false) if current?
     current = args

    y: my.margin
    height: my.button.size
    width: my.button.size
    #click: (world, args) -> world.send world.get('value')
}

ROW_AUTHORITY = {

    {
      _LABEL: command, name: command
      click: ->
        programs.call('add', {name: DEFAULT, command: command})
        programs.send 'inspect'
    }
  {_LABEL: name, _AUTHORITY: BUTTON_AUTHORITY, _CHILDREN: children}
  
# TODO: Add ICON authority for smaller command display
display_program = (name, children) ->
  children = children.all() unless _.isArray(children)
  children.unshift {name: name, fill: "white", stroke: "white"}
