1 parent
dfda555f9b
commit
ec0b6eaa0f
2 files changed
+14
No files matched your search
@@ -1,5 +1,9 @@
|
||||
// orbit: a package manager whose repository is any OCI registry.
|
||||
|
||||
///|
|
||||
/// Orbit's version. A test keeps it equal to the one in moon.mod.
|
||||
let orbit_version : String = "0.1.0"
|
||||
|
||||
///|
|
||||
let usage : String =
|
||||
#|orbit - packages as OCI artifacts
|
||||
@@ -42,6 +46,7 @@ let usage : String =
|
||||
#| orbit env [-g] print the PATH line for your shell
|
||||
#|
|
||||
#|flags: -g, --global --manifest-path <path> --locked --frozen
|
||||
#| -h, --help -V, --version
|
||||
#|constraints: 1.2.3 =1.2.3 ==1.2.3 1.2.* ^1.2.0 ~1.2.0 >=1.2 <2.0 !=1.3.0 *
|
||||
#| (comma-separated clauses are ANDed, e.g. ">=1.2.0, <2.0.0")
|
||||
#|config: <orbit root>/config.toml
|
||||
@@ -189,6 +194,7 @@ async fn dispatch(args : Array[String]) -> Unit raise OrbitError {
|
||||
}
|
||||
match cmd {
|
||||
"help" | "-h" | "--help" => println(usage)
|
||||
"-V" | "--version" => println("orbit \{orbit_version}")
|
||||
"new" => {
|
||||
if force_global {
|
||||
raise OrbitError("--global cannot be used with `orbit new`")
|
||||
|
||||
Reference in new issue
Block a user