#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# '\n        Instantiate GitHubTools & LocalTools, and set the variables required\n        to get, create or update gists (filename and public/private flag)\n        :param user: (str) GitHub username\n        :param filename: (str) name of file from any Gist or local file system\n        :param allow_none: (bool) flag to use GitHubTools.select_gist\n        differently with `getgist` and `putgist` commands (if no gist/filename\n        is found it raises an error for `getgist`, or sets `putgist` to create\n        a new gist).\n        :param create_private: (bool) create a new gist as private\n        :param assume_yes: (bool) assume yes (or first option) for all prompts\n        :return: (None)\n        ' #NEWLINE# user = kwargs . get ( 'user' ) #NEWLINE# allow_none = kwargs . get ( 'allow_none' , False ) #NEWLINE# assume_yes = kwargs . get ( 'assume_yes' , False ) #NEWLINE# filename = kwargs . get ( 'filename' ) #NEWLINE# self . public = ( not kwargs . get ( 'create_private' , False ) ) #NEWLINE# self . local = LocalTools ( filename , assume_yes ) #NEWLINE# if ( not user ) : #NEWLINE# #INDENT# message = "\n                No default user set yet. To avoid this prompt set an\n                environmental variable called  `GETGIST_USER`.'\n            " #NEWLINE# self . local . oops ( message ) #NEWLINE# #UNINDENT# self . github = GitHubTools ( user , filename , assume_yes ) #NEWLINE# self . gist = self . github . select_gist ( allow_none )