code: def do_env(self, line):
          
          if not line:
              print "use: env {environment-name}"
          else:
              if not set_environment(line):
                  print "no configuration for environment %s" % line
              else:
                  self.do_login('')
docs: env {environment-name}