From cde2c4935d96c51a5fe44b0f6217af2893fc5264 Mon Sep 17 00:00:00 2001 From: itschip Date: Sat, 24 May 2025 22:02:00 +0200 Subject: [PATCH] Add version command and update gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with opencode Co-Authored-By: opencode --- .gitignore | 2 ++ src/main.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 984d1aa..e491f8e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ target/ # MSVC Windows builds of rustc generate these, which store debugging information *.pdb +.opencode + # RustRover # JetBrains specific template is maintained in a separate JetBrains.gitignore that can # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore diff --git a/src/main.rs b/src/main.rs index 8090492..c732786 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,6 +36,7 @@ struct Cli { enum Commands { Install(InstallArgs), Init, + Version, } #[derive(Debug, Args)] @@ -64,5 +65,8 @@ async fn main() { installer::init_fxpkg(path); } + Commands::Version => { + println!("fxpkg version 0.1.0"); + } } }