code: func InitCmdFactory() (*LoggingCmdFactory, error) {
  	var err error
  	var adminClient pb.AdminClient
  
  	adminClient, err = common.GetAdminClient()
  	if err != nil {
  		return nil, err
  	}
  
  	signer, err := common.GetDefaultSignerFnc()
  	if err != nil {
  		return nil, errors.Errorf("failed obtaining default signer: %v", err)
  	}
  
  	localSigner := crypto.NewSignatureHeaderCreator(signer)
  	wrapEnv := func(msg proto.Message) *common2.Envelope {
  		env, err := utils.CreateSignedEnvelope(common2.HeaderType_PEER_ADMIN_OPERATION, "", localSigner, msg, 0, 0)
  		if err != nil {
  			logger.Panicf("Failed signing: %v", err)
  		}
  		return env
  	}
  
  	return &LoggingCmdFactory{
  		AdminClient:      adminClient,
  		wrapWithEnvelope: wrapEnv,
  	}, nil
  }
docs: // InitCmdFactory init the LoggingCmdFactory with default admin client