mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Make everything pub for Alex
This commit is contained in:
parent
7da15067e7
commit
2009fd76ab
@ -6,7 +6,7 @@ use serialize::{Decoder};
|
|||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::fmt::{Show,Formatter};
|
use std::fmt::{Show,Formatter};
|
||||||
|
|
||||||
mod util;
|
pub mod util;
|
||||||
|
|
||||||
#[deriving(Decodable,Encodable,Eq,Clone,Ord)]
|
#[deriving(Decodable,Encodable,Eq,Clone,Ord)]
|
||||||
pub struct Manifest {
|
pub struct Manifest {
|
||||||
|
@ -1,6 +1,2 @@
|
|||||||
//pub use self::process_builder::process;
|
pub use self::process_builder::process;
|
||||||
//mod process_builder;
|
mod process_builder;
|
||||||
|
|
||||||
pub fn process(cmd: &str) -> &'static str {
|
|
||||||
"ohai"
|
|
||||||
}
|
|
||||||
|
@ -9,7 +9,7 @@ pub struct ProcessBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ProcessBuilder {
|
impl ProcessBuilder {
|
||||||
fn args(mut self, arguments: &[~str]) -> ProcessBuilder {
|
pub fn args(mut self, arguments: &[~str]) -> ProcessBuilder {
|
||||||
self.args = arguments.to_owned();
|
self.args = arguments.to_owned();
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ pub fn process(cmd: &str) -> ProcessBuilder {
|
|||||||
ProcessBuilder { program: cmd.to_owned(), args: ~[], path: get_curr_path() }
|
ProcessBuilder { program: cmd.to_owned(), args: ~[], path: get_curr_path() }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_curr_path() -> ~[~str] {
|
pub fn get_curr_path() -> ~[~str] {
|
||||||
os::getenv("PATH").map(|path| {
|
os::getenv("PATH").map(|path| {
|
||||||
path.split(std::path::SEP).map(|seg| seg.to_owned()).collect()
|
path.split(std::path::SEP).map(|seg| seg.to_owned()).collect()
|
||||||
}).unwrap_or(~[])
|
}).unwrap_or(~[])
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
use support::project;
|
use support::project;
|
||||||
|
use cargo;
|
||||||
|
|
||||||
fn setup() {
|
fn setup() {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user