feat: Add starship preset command (#4112)

* Add starship preset command

* Use ValueEnum for preset command

* Generate ValueEnum struct in build.rs

* Use absolute paths and refactor codegen

* Use dunce to canonicalize path

* Use raw string literal in include_bytes!

* Use .cloned()

* Apply fixes

* Fix path escaping

* Removed error message if stdout is unavailable

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
Artyom Belousov
2022-08-02 12:51:15 +03:00
committed by GitHub
parent b456b9c519
commit c8a5adb412
10 changed files with 137 additions and 2 deletions
+1
View File
@@ -110,6 +110,7 @@ nix = { version = "0.24.2", default-features = false, features = ["feature", "fs
[build-dependencies]
shadow-rs = "0.16.1"
dunce = "1.0.2"
[target.'cfg(windows)'.build-dependencies]
winres = "0.1.12"