diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 14d9d42e84a9895b6f1a786dda54a3e96e3fda4a..0000000000000000000000000000000000000000 --- a/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1749401433, - "narHash": "sha256-HXIQzULIG/MEUW2Q/Ss47oE3QrjxvpUX7gUl4Xp6lnc=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "08fcb0dcb59df0344652b38ea6326a2d8271baff", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index b8c141b1b2b64668d2aab853ef0aa2cde2355e14..0000000000000000000000000000000000000000 --- a/flake.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; - outputs = - { nixpkgs, ... }: - let - systems = [ - "aarch64-darwin" - "aarch64-linux" - "x86_64-darwin" - "x86_64-linux" - ]; - forAllSystems = f: nixpkgs.lib.genAttrs systems f; - in - { - packages = forAllSystems ( - system: - let - pkgs = import nixpkgs { inherit system; }; - name = "spectre"; - in - { - default = pkgs.rustPlatform.buildRustPackage { - pname = name; - version = "0.1.0"; - src = pkgs.nix-gitignore.gitignoreSource [ ] ( - builtins.path { - inherit name; - path = ./.; - } - ); - useFetchCargoVendor = true; - cargoHash = "sha256-t0FXfIImqQiFbSVbDC+CEBE3IBXpWR4A3DQmhLnaCm0="; - }; - } - ); - }; -} diff --git a/spectre-cli/src/main.rs b/spectre-cli/src/main.rs index b88aef01f17e23658b2ad5190adecff70fe535a5..25e46db8d1e660994c5b6463228e959e8a0e40e5 100644 --- a/spectre-cli/src/main.rs +++ b/spectre-cli/src/main.rs @@ -203,7 +203,7 @@ } #[test] fn test_default_values() { - let args = Args::parse_from(&["spectre", "--username", "example", "example.com"]); + let args = Args::parse_from(&["spectre", "example.com"]); assert_eq!(args.base, "com.lyndir.masterpassword"); assert_eq!(args.counter, 1); assert!(!args.print); @@ -211,7 +211,7 @@ } #[test] fn test_with_site() { - let args = Args::parse_from(&["spectre", "--username", "example", "example.com"]); + let args = Args::parse_from(&["spectre", "example.com"]); assert_eq!(args.site, "example.com".to_string()); }