| #!/bin/bash |
| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| #### CATEGORY=Run, inspect and debug |
| ### run a component on the current target |
| ## Run a component on the target. See "fx run --help" for more flags. |
| ## |
| ## Example usage: |
| ## fx run rolldice.cmx |
| ## fx run fuchsia-pkg://fuchsia.com/rolldice#meta/rolldice.cmx |
| |
| set -e |
| |
| source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/lib/vars.sh || exit $? |
| |
| fx-command-run shell run "$@" |