deno.land / x / trex@v1.13.1 / utils / info.ts
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129/** * Copyright (c) Crew Dev. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */
import { Config } from "../handlers/global_configs.ts";import * as colors from "fmt/colors.ts";
const { green, yellow } = colors;export const URI_STD = "https://deno.land/std";
export const URI_X = "https://deno.land/x/";
export const STD = [ "_util", "_wasm_crypto", "fs", "http", "crypto", "archive", "async", "bytes", "datetime", "encoding", "flags", "fmt", "hash", "io", "log", "mime", "node", "path", "permissions", "signal", "testing", "textproto", "uuid", "ws", "wasi", "collections", "dotenv", "streams",];
export const VERSION = { VERSION: "v1.13.1" };
export const helpsInfo = [ green( `advanced package management for deno, based on ${ Config.getConfig( "importMap", ) }\n`, ),
green("\nUSAGE:\n"), ` trex ${yellow("[OPTIONS]")} ${yellow("[SUBCOMMAND]")}\n`,
green("\nOPTIONS:\n"), ` ${yellow("-h, --help")} print help info\n`,
` ${yellow("-c, --custom")} install custom package\n`,
` ${yellow("-v, --version")} print version\n`,
` ${yellow("-m, --map")} install package from deno.land\n`,
` ${yellow("-n, --nest")} install package from nest.land\n`,
` ${yellow("-p, --pkg")} install package from some repository\n`,
green("\nSUBCOMMANDS:\n"), ` ${yellow("[install or i]")} install a package\n`,
` ${yellow("delete")} delete a package\n`,
` ${yellow("upgrade")} update trex\n`,
` ${yellow("tree")} view dependency tree\n`,
` ${yellow("run")} run a script alias in a file run.json\n`,
` ${yellow("purge")} remove a package or url from cache\n`,
` ${yellow("ls")} shows the list of installed packages\n`,
` ${yellow("exec")} execute any cli tool without install\n`,
` ${ yellow( "check", ) } check deno.land [std/x] dependencies updates\n`,
` ${yellow("global-config")} set and get global configurations\n`,
green( "\nyou can see the different options available for each command using:\n", ),
` ${green("trex")} ${yellow("[command]")} ${yellow("--help or -h")}\n`,];
export const flags = { map: ["--map", "-m"], version: ["--version", "-v"], custom: ["--custom", "-c"], help: ["--help", "-h"], nest: ["--nest", "-n"], pkg: ["--pkg", "-p"], fix: ["--fix", "-f"],};
export const keyWords = { install: ["install", "i"], uninstall: "delete", upgrade: "upgrade", tree: "tree", run: "run", purge: "purge", setup: "setup", ls: "ls", exec: "exec", check: "check", globalConfig: "global-config",};
Version Info