Skip to content

Commit

Permalink
run command and other fixes
Browse files Browse the repository at this point in the history
diced committed Feb 18, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6632639 commit 7dc86e6
Showing 16 changed files with 44 additions and 11 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion Cargo.lock
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ description = "discord version manager for linux"
homepage = "https://github.com/diced/dvm"
repository = "https://github.com/diced/dvm.git"
license = "MIT"
version = "1.1.7"
version = "1.1.8"
authors = ["diced <[email protected]>"]
edition = "2021"

45 changes: 39 additions & 6 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ Allowing you to manage all of your discord versions. This was made as I was impa

# Usage
```
dvm 1.1.4
dvm 1.1.8
USAGE:
dvm <SUBCOMMAND>
@@ -25,7 +25,7 @@ SUBCOMMANDS:

# Installing
To install a specific version just type in
```
```sh
dvm install stable
```
This will do the following:
@@ -36,13 +36,13 @@ This will do the following:

## Installing multiple versions at once
You can install multiple versions at once, they will be executed one after the other.
```
```sh
dvm install stable ptb canary development
```

# Removing
Removing installations is as easy as installing them
```
```sh
dvm remove stable
```
This will do the following:
@@ -52,11 +52,44 @@ This will do the following:

# Update
Updating installations is as easy as installing them
```
```sh
dvm update stable
```
This will do the following:
1. Check if discord actually needs to be updated
2. Download the latest tarball
3. Remove the $HOME/.dvm/<installation type>
4. Do everything the installation does.
4. Do everything the installation does.

# Show
This will show all installations that are currently installed, the `--verbose, -v` flag will show the path it's installed to, and the `--check, -c` flag will check if your installations are up-to-date (red = outdated, green = up to date)
```sh
dvm show
dvm show -v
dvm show -c
dvm show -vc
```
```sh
# no flag
canary:0.0.133
development:0.0.198
stable:0.0.17
# -v
canary:0.0.133 -> /home/diced/.dvm/DiscordCanary
development:0.0.198 -> /home/diced/.dvm/DiscordDevelopment
stable:0.0.17 -> /home/diced/.dvm/Discord
```

# Run
You can run discord via command line with extra flags
```sh
dvm run canary <extra args>
# for example
dvm run canary --idk-some-chromium-flag-or-something
```

# Completions
Get shell completions for your shell of choice
```sh
dvm completions zsh
```
Empty file modified rustfmt.toml
100644 → 100755
Empty file.
Empty file modified src/cli/install.rs
100644 → 100755
Empty file.
Empty file modified src/cli/mod.rs
100644 → 100755
Empty file.
Empty file modified src/cli/remove.rs
100644 → 100755
Empty file.
Empty file modified src/cli/run.rs
100644 → 100755
Empty file.
Empty file modified src/cli/show.rs
100644 → 100755
Empty file.
Empty file modified src/cli/update.rs
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/common.rs
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub const VERSION: &str = "1.1.4";
pub const VERSION: &str = "1.1.8";
pub const INSTALL_DESC: &str = "install the latest <type> of discord";
pub const INSTALL_ALIASES: &[&str] = &["i", "in", "get"];
pub const UPDATE_DESC: &str = "update to the latest <type> of discord";
@@ -10,7 +10,7 @@ pub const SHOW_ALIASES: &[&str] = &["s", "installed", "all", "a", "versions", "t
pub const COMP_DESC: &str = "get shell completions";
pub const COMP_ALIASES: &[&str] = &["c", "comp"];
pub const RUN_DESC: &str = "run discord with specific options";
pub const RUN_ALIASES: &[&str] = &["r", "start", "s"];
pub const RUN_ALIASES: &[&str] = &["r", "start"];

pub const POSSIBLE_SHELLS: &[&str] = &[
"bash", "b",
@@ -37,4 +37,4 @@ pub const POSSIBLE_VALUES: &[&str] = &[
"dev",
"discord-development",
"d",
];
];
Empty file modified src/lib.rs
100644 → 100755
Empty file.
Empty file modified src/main.rs
100644 → 100755
Empty file.
Empty file modified src/type.rs
100644 → 100755
Empty file.
Empty file modified src/util.rs
100644 → 100755
Empty file.

0 comments on commit 7dc86e6

Please sign in to comment.