Skip to content

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Feat: Rust script support #2

wants to merge 2 commits into from

Conversation

GeekMasher
Copy link
Contributor

No description provided.

path = "./script/action.yml",
image = "./script/Dockerfile"
)]
pub struct RustToolingScriptAction {

Check warning

Code scanning / clippy

field token is never read Warning

field token is never read
path = "./script/action.yml",
image = "./script/Dockerfile"
)]
pub struct RustToolingScriptAction {

Check warning

Code scanning / clippy

field token is never read Warning

field token is never read
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

field token is never read
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

field token is never read
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

value assigned to data is never read
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

value assigned to data is never read

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

variable does not need to be mutable

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

variable does not need to be mutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant