<s> from lib import action <EOL> class ViewBoardsAction ( action . BaseAction ) : <EOL> def run ( self , api_key = None , token = None ) : <EOL> if api_key : <EOL> self . _set_creds ( api_key = api_key , token = token ) <EOL> boards = { } <EOL> for board in self . _client ( ) . list_boards ( ) : <EOL> if not board . closed : <EOL> boards [ board . id ] = { <EOL> '<STR_LIT:name>' : board . name , <EOL> '<STR_LIT:description>' : board . description , <EOL> '<STR_LIT>' : board . closed , <EOL> '<STR_LIT:url>' : board . url <EOL> } <EOL> return boards </s>
