#!/usr/bin/env bash
#-------------------------------------------------------------------------------
# Copyright (C) 2012-2019 British Crown (Met Office) & Contributors.
#
# This file is part of Rose, a framework for meteorological suites.
#
# Rose is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rose is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Rose. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------
# NAME
#     rosie delete
#
# SYNOPSIS
#     rosie delete [OPTIONS] [--] [ID ...]
#
# DESCRIPTION
#     Delete suites.
#
#     Check the standard working copy location for a checked out suite
#     matching `ID` and remove it if there is no uncommitted change (or if
#     `--force` is specified).
#
#     Delete the suite directory structure from the HEAD of the central
#     repository matching the `ID`.
#
#     If no `ID` is specified and `$PWD` is a working copy of a suite, use the
#     `ID` of the suite in the working copy.
#
# OPTIONS
#     --force, -f
#         Remove working copies even if there are uncommitted changes.
#         Continue with the next `ID` if delete of a suite fails.
#     --local-only
#         Remove only the working copy of a suite.
#     --non-interactive, --yes, -y
#         Switch off interactive prompting (=answer yes to everything)
#     --quiet, -q
#         Decrement verbosity.
#     --verbose, -v
#         Increment verbosity.
#-------------------------------------------------------------------------------
exec python2 -m rosie.vc delete "$@"
