Skip to content

Commit 0cd5bae

Browse files
committed
show contributors function
1 parent 1dafd1f commit 0cd5bae

3 files changed

Lines changed: 23 additions & 6 deletions

File tree

.claude/settings.local.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(cargo build:*)",
5+
"Bash(cargo check:*)",
6+
"Bash(where clang:*)",
7+
"Read(//c/Program Files/LLVM/bin/**)",
8+
"Bash(echo \"LIBCLANG_PATH=$LIBCLANG_PATH\")",
9+
"Read(//c/Program Files/**)",
10+
"Bash(winget list:*)",
11+
"Bash(cargo tree:*)",
12+
"Bash(where llvm-config:*)",
13+
"Read(//c/msys64/mingw64/bin/**)",
14+
"Read(//c/msys64/clang64/bin/**)"
15+
]
16+
}
17+
}

src/commands/info.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ pub fn execute() {
9595
}
9696
}
9797

98-
// Display contributors if available
99-
let raw_contributors = option_env!("CONTRIBUTORS").unwrap_or("");
98+
// Display contributors from embedded contributors.csv
99+
let raw_contributors = include_str!("../../contributors.csv");
100100
let contributors: Vec<&str> = raw_contributors
101-
.split(',')
101+
.lines()
102102
.filter(|s| !s.trim().is_empty())
103103
.collect();
104104

105105
if !contributors.is_empty() {
106-
println!("\n{}", "Special thanks to:".green().bold());
106+
println!("\n{}", "Special Thanks to our Contributors".green().bold());
107107

108-
for chunk in contributors.chunks(5) {
108+
for chunk in contributors.chunks(4) {
109109
println!(" {}", chunk.join(", "));
110110
}
111111
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn main() {
5757
Arg::new("server")
5858
.long("server")
5959
.alias("host")
60-
.short('h')
60+
.short('H')
6161
.help("StackQL server host to connect to")
6262
.global(true)
6363
.default_value(DEFAULT_SERVER_HOST)

0 commit comments

Comments
 (0)