Useful command-line tools for Angular projects written in Rust.
Commands:
Use the --help
argument to get more details about the program or specific command:
shell
rung --help
rung <command> --help
Provides listing of the contents of the angular.json
file.
```shell USAGE: rung ls [OPTIONS] [SUBCOMMAND]
OPTIONS:
-c, --config
SUBCOMMANDS: apps List all applications help Prints this message or the help of the given subcommand(s) libs List all libraries ```
Examples:
```shell
rung ls
rung ls apps
rung ls libs ```
By default, the CLI expects the angular.json
file to be in the current directory.
It is also possible to provide a custom path:
shell
rung ls libs -c ./assets/angular/angular.json
Creates a new Angular application with [Angular CLI].
Requires an [Angular CLI] to be installed.
```shell
USAGE:
rung new [OPTIONS]
ARGS:
OPTIONS: -d, --directory
Differences to running ng new <name>
command directly:
Examples:
```shell
app1
in the current directoryrung new app1
app2
in the /tmp/apps
directoryrung new app2 -d /tmp/apps ```
Runs a lightweight web server.
```shell USAGE: rung serve [FLAGS] [OPTIONS]
ARGS:
FLAGS: -o, --open Opens the url in default browser.
OPTIONS:
-h, --host
Examples:
```shell
rung serve ./dist/app1 -p 8081
rung serve ./dist/app1 -p 8081 --open ```
Verifies that the JSON file is valid based on the JSON schema.
Usage:
```shell
rung check json --file
OPTIONS:
-f, --file
Examples:
shell
run check json \
-f ./assets/json/example.json \
-t ./assets/json/example.schema.json
Verifies that the file(s) header is matching one or multiple templates. Typically, used for license header checks in source code files.
Main features:
```shell
USAGE:
rung check header --file
OPTIONS:
-f, --file
```
Examples:
```shell
rung check header \ -f ./assets/files/example-1.ts.txt \ -t ./assets/templates/template-asf.txt \ -t ./assets/templates/template-mit.txt
rung check header \ -f ./assets/files/* \ -t ./assets/templates/* ```
Rung is primarily distributed under the terms of the Apache License (Version 2.0).
See LICENSE for more details.