from .command import Command
from matador import utils


class DeployTicket(Command):

    def _add_arguments(self, parser):
        parser.prog = 'matador deploy-ticket'
        parser.add_argument(
            '-e', '--environment',
            type=str,
            required=True,
            help='Agresso environment name')

    def _execute(self):
        project = utils.project()
        utils.update_repository(project)

from .command import Command
from matador import utils


class DeployTicket(Command):

    def _add_arguments(self, parser):
        parser.prog = 'matador deploy-ticket'
        parser.add_argument(
            '-e', '--environment',
            type=str,
            required=True,
            help='Agresso environment name')

        parser.add_argument(
            '-', '--package',
            type=bool,
            default=False,
            help='Agresso environment name')

    def _execute(self):
        project = utils.project()
        if not self.args.package:
            utils.update_repository(project)

Add package argument to deploy-ticket
Add package argument to deploy-ticket

  from .command import Command
  from matador import utils
  
  
  class DeployTicket(Command):
  
      def _add_arguments(self, parser):
          parser.prog = 'matador deploy-ticket'
          parser.add_argument(
              '-e', '--environment',
              type=str,
              required=True,
              help='Agresso environment name')
  
+         parser.add_argument(
+             '-', '--package',
+             type=bool,
+             default=False,
+             help='Agresso environment name')
+ 
      def _execute(self):
          project = utils.project()
+         if not self.args.package:
-         utils.update_repository(project)
+             utils.update_repository(project)
  
Add package argument to deploy-ticket
## Code Before:
from .command import Command
from matador import utils


class DeployTicket(Command):

    def _add_arguments(self, parser):
        parser.prog = 'matador deploy-ticket'
        parser.add_argument(
            '-e', '--environment',
            type=str,
            required=True,
            help='Agresso environment name')

    def _execute(self):
        project = utils.project()
        utils.update_repository(project)

## Instruction:
Add package argument to deploy-ticket
## Code After:
from .command import Command
from matador import utils


class DeployTicket(Command):

    def _add_arguments(self, parser):
        parser.prog = 'matador deploy-ticket'
        parser.add_argument(
            '-e', '--environment',
            type=str,
            required=True,
            help='Agresso environment name')

        parser.add_argument(
            '-', '--package',
            type=bool,
            default=False,
            help='Agresso environment name')

    def _execute(self):
        project = utils.project()
        if not self.args.package:
            utils.update_repository(project)
