aboutsummaryrefslogtreecommitdiff
path: root/cli/src
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-10-02 21:30:03 +0200
committerMel <einebeere@gmail.com>2021-10-02 21:30:03 +0200
commitcf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5 (patch)
treed3b415c9480ff6d57b98d6f4355bd37636b7dd2e /cli/src
parent55da5ae8cf731c768d6cc580693068e64234a4af (diff)
downloadka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.tar.zst
ka-cf01169e467f4ac36d2d8b9ce13e7bbc81d46aa5.zip
Immutable Fs implementation and replaced exists calls.
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/src/main.rs b/cli/src/main.rs
index be52e60..d140d97 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -12,19 +12,19 @@ fn main() {
let options = ActionOptions::from_path("./repo");
//let options = ActionOptions::from_pwd().expect("Could not get current path.");
- let mut filesystem = FsImpl {};
+ let filesystem = FsImpl {};
match command {
"create" => {
- create(options, &mut filesystem).expect("Failed executing Create action.");
+ create(options, &filesystem).expect("Failed executing Create action.");
}
"update" => {
- update(options, &mut filesystem).expect("Failed executing Update action.");
+ update(options, &filesystem).expect("Failed executing Update action.");
}
"shift" => {
let new_cursor: usize = args[2].as_str().parse().expect("Invalid cursor.");
- shift(options, &mut filesystem, new_cursor).expect("Failed executing Shift actions.");
+ shift(options, &filesystem, new_cursor).expect("Failed executing Shift actions.");
}
_ => panic!("Unknown command: {}", command),
}