예제 #1
0
 def Run(self, args):
     if not args.quiet:
         render_document.RenderDocument(fin=io.StringIO(_SPLASH))
     config = configuration.Config(
         context=args.context,
         debug=args.debug,
         hidden=args.hidden,
         prompt=args.prompt,
         suggest=args.suggest,
     )
     _AppendMetricsEnvironment('interactive_shell')
     application.main(args=args, config=config)
예제 #2
0
 def Run(self, args):
   # TODO(b/69033748): drop this workaround when the trees are packaged
   if args.update_cli_trees:
     generate_cli_trees.UpdateCliTrees(
         warn_on_exceptions=True, verbose=not args.quiet)
   if not args.quiet:
     render_document.RenderDocument(fin=io.StringIO(_SPLASH))
   config = configuration.Config(
       context=args.context,
       hidden=args.hidden,
       prompt=args.prompt,
       suggest=args.suggest,
   )
   application.main(args=args, config=config)