#!/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 disco
#
# SYNOPSIS
#     rosie disco start [PORT] # start ad-hoc web service server (on PORT)
#     rosie disco stop         # stop ad-hoc web service server
#     rosie disco stop -y      # stop ad-hoc web service server w/o prompting
#     rosie disco              # print status of ad-hoc web service server
#
# DESCRIPTION
#     Start/stop ad-hoc Rosie suite discovery web service server.
#
#     For `rosie disco start`, if `PORT` is not specified, use port 8080.
#
# OPTIONS
#     --non-interactive, --yes, -y
#         (For stop only.) Switch off interactive prompting (=answer yes to
#         everything)
#     --service-root, -R
#         (For start only.) Include web service name under root of URL.
#-------------------------------------------------------------------------------
exec python2 -m rosie.ws "$@"
