code: def do_set(self, line):
          '''
          Set repository attributes on the active repo.
  
          set attribute=value
  
          # intended use:
  
          # directory repos:
          work_on developer-repo
          set type=directory
          set directory=package-directory
  
          # http repos:
          work_on company-private-repo
          set type=http
          set download-url=http://...
          set upload-url=http://...
          set username=user
          set password=pass
          '''
          self.abort_on_invalid_active_repo('set')
          repo = self.network.active_repo
          attribute, eq, value = line.partition('=')
          if not attribute:
              raise ShellError('command "set" requires a non-empty attribute')
          if not eq:
              raise ShellError('command "set" requires a value')
          self.network.set(repo, attribute, valuef do_set(self, line):
          '''
          Set repository attributes on the active repo.
  
          set attribute=value
  
          # intended use:
  
          # directory repos:
          work_on developer-repo
          set type=directory
          set directory=package-directory
  
          # http repos:
          work_on company-private-repo
          set type=http
          set download-url=http://...
          set upload-url=http://...
          set username=user
          set password=pass
          '''
          self.abort_on_invalid_active_repo('set')
          repo = self.network.active_repo
          attribute, eq, value = line.partition('=')
          if not attribute:
              raise ShellError('command "set" requires a non-empty attribute')
          if not eq:
              raise ShellError('command "set" requires a value')
          self.network.set(repo, attribute, value)
docs: Set repository attributes on the active repo.
  
          set attribute=value
  
          # intended use:
  
          # directory repos:
          work_on developer-repo
          set type=directory
          set directory=package-directory
  
          # http repos:
          work_on company-private-repo
          set type=http
          set download-url=http://...
          set upload-url=http://...
          set username=user
          set password=pass