Skip to content

Commit

Permalink
chore: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Jun 16, 2024
1 parent 2cec633 commit 8b9da1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/managers/swift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn is_command_available() -> bool {
pub fn get_task_command_map() -> HashMap<String, String> {
let mut task_command_map = HashMap::new();
task_command_map.insert("build".to_string(), "swift build".to_string());
task_command_map.insert("release".to_string(), "swift build -c release".to_string());
task_command_map.insert("start".to_string(), "swift run".to_string());
task_command_map.insert("test".to_string(), "swift test".to_string());
task_command_map.insert("deps".to_string(), "swift package show-dependencies".to_string());
Expand Down
1 change: 1 addition & 0 deletions src/managers/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub fn get_task_command_map() -> HashMap<String, String> {
task_command_map.insert("install".to_string(), "zig build install".to_string());
task_command_map.insert("compile".to_string(), "zig build".to_string());
task_command_map.insert("build".to_string(), "zig build".to_string());
task_command_map.insert("release".to_string(), "zig build -Drelease-safe".to_string());
task_command_map.insert("start".to_string(), "zig build run".to_string());
task_command_map.insert("test".to_string(), "zig build test".to_string());
task_command_map.insert("clean".to_string(), "zig build uninstall".to_string());
Expand Down

0 comments on commit 8b9da1c

Please sign in to comment.