Browse Source

Update version and include listing of groups

Samuel W. Flint 1 year ago
parent
commit
bff0a228a1
4 changed files with 9 additions and 5 deletions
  1. 1 1
      Cargo.lock
  2. 1 1
      Cargo.toml
  3. 2 2
      flake.nix
  4. 5 1
      src/main.rs

+ 1 - 1
Cargo.lock

@@ -185,7 +185,7 @@ dependencies = [
 
 [[package]]
 name = "sync-it"
-version = "2.1.2"
+version = "2.2.0"
 dependencies = [
  "clap",
  "clap_complete",

+ 1 - 1
Cargo.toml

@@ -4,7 +4,7 @@
 
 [package]
 name = "sync-it"
-version = "2.1.2"
+version = "2.2.0"
 authors = ["Samuel W. Flint <swflint@flintfam.org>"]
 edition = "2018"
 license = "GPL-3.0-or-later"

+ 2 - 2
flake.nix

@@ -17,11 +17,11 @@
 
           sync-it = pkgs.rustPlatform.buildRustPackage rec {
             name = "sync-it";
-            version = "2.1.2";
+            version = "2.2.0";
 
             src = ./.;
 
-            cargoSha256 = "sha256-QaczpiWSZoJg4BZbirz/+w2tfe9Or+jCBY3Adt70+y8=";
+            cargoSha256 = "sha256-cLyk5ZZkBPjjckAyLTWK6q8Etkq1dpQmxpYB6xnd75I=";
 
             meta = {
               description = "A simple, customizable synchronization tool.";

+ 5 - 1
src/main.rs

@@ -535,7 +535,11 @@ fn main() {
                         None => eprintln!("No known group named \"{}\".", group_name)
                     }
                 }
-                Some(("list", _subm)) => {}
+                Some(("list", _subm)) => {
+                    for key in configuration.groups.keys() {
+                        println!(" - {}", key);
+                    }
+                }
                 _ => {
                     panic!("This should never happen...")
                 }