Task command has a few missing commands not tested: https://codecov.io/gh/apache/airflow/src/master/airflow/cli/commands/task_command.py (77%)

tests/cli/commands/test_task_command.py
@classmethod
    def setUpClass(cls):
        cls.dagbag = DagBag(include_examples=True)
    def setUp(self):
        clear_db_runs()
        clear_db_pools()
        self.parser = cli_parser.get_parser()
    def test_run_ignores_all_dependencies(self):
        """
        Test that run respects ignore_all_dependencies
        """
        dag_id = 'test_run_ignores_all_dependencies'
        dag = self.dagbag.get_dag('test_run_ignores_all_dependencies')
        dag.clear()
        task0_id = 'test_run_dependent_task'
        args0 = ['tasks', 'run', '--ignore-all-dependencies', dag_id, task0_id, DEFAULT_DATE.isoformat()]
        task_command.task_run(self.parser.parse_args(args0))
        ti_dependent0 = TaskInstance(task=dag.get_task(task0_id), execution_date=DEFAULT_DATE)
        ti_dependent0.refresh_from_db()
        assert ti_dependent0.state == State.FAILED
        task1_id = 'test_run_dependency_task'