Skip to content

Commit

Permalink
feat: Start working on the cargo-finestra subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
usadson committed Feb 13, 2024
1 parent 60fa8f7 commit 4cf20a7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = [
"cargo-finestra",
"finestra",
"showcase",
]
Expand Down
10 changes: 10 additions & 0 deletions cargo-finestra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "cargo-finestra"
edition.workspace = true
repository.workspace = true
version.workspace = true
authors.workspace = true
license.workspace = true
description.workspace = true

[dependencies]
14 changes: 14 additions & 0 deletions cargo-finestra/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (C) 2024 Tristan Gerritsen <tristan@thewoosh.org>
// All Rights Reserved.

fn main() {
println!("{} environment variable(s) set:", std::env::vars().count());
for (name, value) in std::env::vars() {
println!(" - {name}: \"{value}\"");
}

println!("{} argument(s) set:", std::env::args().count());
for arg in std::env::args() {
println!(" - \"{arg}\"");
}
}

0 comments on commit 4cf20a7

Please sign in to comment.