-
Notifications
You must be signed in to change notification settings - Fork 0
Feat: Rust script support #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
path = "./script/action.yml", | ||
image = "./script/Dockerfile" | ||
)] | ||
pub struct RustToolingScriptAction { |
Check warning
Code scanning / clippy
field token is never read Warning
path = "./script/action.yml", | ||
image = "./script/Dockerfile" | ||
)] | ||
pub struct RustToolingScriptAction { |
Check warning
Code scanning / clippy
field token is never read Warning
pub path: String, | ||
|
||
#[input(description = "The Crates API Token", required = true)] | ||
pub token: String, |
Check warning
Code scanning / clippy
field token is never read Warning
pub path: String, | ||
|
||
#[input(description = "The Crates API Token", required = true)] | ||
pub token: String, |
Check warning
Code scanning / clippy
field token is never read Warning
let mut data = self.script.clone(); | ||
|
||
if !data.starts_with("#!") { | ||
data = format!("#!/usr/bin/env rust-script\n{}", data); |
Check warning
Code scanning / clippy
value assigned to data is never read Warning
let mut data = self.script.clone(); | ||
|
||
if !data.starts_with("#!") { | ||
data = format!("#!/usr/bin/env rust-script\n{}", data); |
Check warning
Code scanning / clippy
value assigned to data is never read Warning
|
||
cmd.push(path.as_os_str().to_str().unwrap()); | ||
|
||
let mut output = tokio::process::Command::new("sh") |
Check warning
Code scanning / clippy
variable does not need to be mutable Warning
|
||
cmd.push(path.as_os_str().to_str().unwrap()); | ||
|
||
let mut output = tokio::process::Command::new("sh") |
Check warning
Code scanning / clippy
variable does not need to be mutable Warning
No description provided.