From 34c055a30e9a49bd89da1367c82c9c7427db6d1b Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Jul 2026 18:44:13 -0400 Subject: [PATCH 1/4] tsk-100: Updating name --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 2 +- README.md | 36 +++++++++--------------------------- 3 files changed, 25 insertions(+), 43 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c46e2e..b3995c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -552,21 +552,6 @@ dependencies = [ "windows-registry", ] -[[package]] -name = "icarus-dm" -version = "0.10.0" -dependencies = [ - "futures", - "http", - "icarus_models", - "reqwest", - "serde", - "serde_json", - "tokio", - "tokio-util", - "uuid", -] - [[package]] name = "icarus_models" version = "0.11.1" @@ -669,6 +654,21 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" +[[package]] +name = "idm" +version = "0.10.0" +dependencies = [ + "futures", + "http", + "icarus_models", + "reqwest", + "serde", + "serde_json", + "tokio", + "tokio-util", + "uuid", +] + [[package]] name = "idna" version = "1.1.0" diff --git a/Cargo.toml b/Cargo.toml index 086bcf8..6d07724 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "icarus-dm" +name = "idm" version = "0.10.0" rust-version = "1.95" edition = "2024" diff --git a/README.md b/README.md index b07bf32..44b2977 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,54 @@ -# IcarusDownloadManager +# idm -IcarusDownloadManager is a CLI software client application that has the feature of uploading and downloading songs from the [Icarus](https://github.com/kdeng00/Icarus) Music Server. +idm (IcarusDownloadManager) is a CLI software client application that has the feature of uploading and downloading songs from the [icarus](https://git.kundeng.us/phoenix/icarus) Music Server. -## Built With - -* Rust -* Cargo -* futures -* http -* reqwst -* serde -* serde_json -* tokio -* tokio-util -* icarus_models - ### Getting Started Clone the repo ```BASH -git clone git@github.com:kdeng00/IcarusDownloadManager.git +git clone git@git.kundeng.us:phoenix/idm.git ``` Build the project: ```BASH -cd IcarusDownloadManager +cd idm cargo build ``` -Even though this project is open source, there are some libraries that are closed source (may be opened later). -In order to successfully build it, your ssh public key would be needed to add to the closed libraries. If you -have interest, something could be worked out to provide access. - -The program has been built and can be executed by the binary file *icarus-dm*. For information on how to use icarua-dm, merely execute the program without any command line arguments. ### Downloading Song ```BASH -icarus-dm download -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -b e8407fc6-edd2-44c1-993f-08dd7324d91a +idm download -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -b e8407fc6-edd2-44c1-993f-08dd7324d91a ``` ### Uploading Song with metadata ```BASH -icarus-dm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -s /path/of/song.flac -t 1 -m /path/to/metadata/config/collection.json -ca /path/to/cover/art/image.png +idm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -s /path/of/song.flac -t 1 -m /path/to/metadata/config/collection.json -ca /path/to/cover/art/image.png ``` ### Uploading Song with metadata from directory ```BASH -icarus-dm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -smca /path/where/songs/and/metadata/exists/ +idm upload-meta -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -smca /path/where/songs/and/metadata/exists/ ``` ### Retrieving Song in json ```Bash -icarus-dm retrieve -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -rt songs +idm retrieve -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -rt songs ``` ### Deleting Song ```BASH -icarus-dm delete -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -D e8407fc6-edd2-44c1-993f-08dd7324d91a +idm delete -u spacecadet -p stellar40 -h https://icarus.com -ha https://auth.icarus.com -D e8407fc6-edd2-44c1-993f-08dd7324d91a ``` -- 2.47.3 From e2b6549c2d23503efccda0fe211570fdf3be12dc Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Jul 2026 18:44:26 -0400 Subject: [PATCH 2/4] tsk-100: Updating workflow --- .github/workflows/rust-ubuntu-latest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-ubuntu-latest.yml b/.github/workflows/rust-ubuntu-latest.yml index 776b882..15a1b06 100644 --- a/.github/workflows/rust-ubuntu-latest.yml +++ b/.github/workflows/rust-ubuntu-latest.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Rust version run: rustup install 1.95 && rustup default 1.95 @@ -27,7 +27,7 @@ jobs: mkdir -p ~/.ssh echo "$EXTREPO_KEY" > ~/.ssh/gitlab_deploy_key chmod 600 ~/.ssh/gitlab_deploy_key - ssh-keyscan ${{ vars.MYHOST }}= >> ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.MYHOST }}= >> ~/.ssh/known_hosts eval $(ssh-agent -s) ssh-add -v ~/.ssh/gitlab_deploy_key -- 2.47.3 From 97ab0abdf780fe2f08861a3e652284cb6683ac83 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Jul 2026 18:53:26 -0400 Subject: [PATCH 3/4] tsk-100:Updating name --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d8da8d7..1b90fa1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,7 @@ mod tests { #[test] fn test_minimum_action_and_args() { let args: Vec = vec![ - "icarus-dm".to_string(), + "idm".to_string(), "download".to_string(), "-u".to_string(), "jamborie".to_string(), -- 2.47.3 From d25f34ca3dae54fda886dc74f6dd6d5e03ee2d93 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 10 Jul 2026 18:56:22 -0400 Subject: [PATCH 4/4] Update workflow --- .github/workflows/rust-ubuntu-latest.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust-ubuntu-latest.yml b/.github/workflows/rust-ubuntu-latest.yml index 15a1b06..204fcce 100644 --- a/.github/workflows/rust-ubuntu-latest.yml +++ b/.github/workflows/rust-ubuntu-latest.yml @@ -16,12 +16,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Install Rust version - run: rustup install 1.95 && rustup default 1.95 - - - name: Debug secret - run: echo "${{ secrets.MYREPO_TOKEN }}" | head -c 10 ; echo "..." - + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.95 + - uses: Swatinem/rust-cache@v2 - name: Build run: | mkdir -p ~/.ssh -- 2.47.3