mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +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::{Show,Formatter};
|
||||
|
||||
mod util;
|
||||
pub mod util;
|
||||
|
||||
#[deriving(Decodable,Encodable,Eq,Clone,Ord)]
|
||||
pub struct Manifest {
|
||||
|
@ -1,6 +1,2 @@
|
||||
//pub use self::process_builder::process;
|
||||
//mod process_builder;
|
||||
|
||||
pub fn process(cmd: &str) -> &'static str {
|
||||
"ohai"
|
||||
}
|
||||
pub use self::process_builder::process;
|
||||
mod process_builder;
|
||||
|
@ -9,7 +9,7 @@ pub struct ProcessBuilder {
|
||||
}
|
||||
|
||||
impl ProcessBuilder {
|
||||
fn args(mut self, arguments: &[~str]) -> ProcessBuilder {
|
||||
pub fn args(mut self, arguments: &[~str]) -> ProcessBuilder {
|
||||
self.args = arguments.to_owned();
|
||||
self
|
||||
}
|
||||
@ -19,7 +19,7 @@ pub fn process(cmd: &str) -> ProcessBuilder {
|
||||
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| {
|
||||
path.split(std::path::SEP).map(|seg| seg.to_owned()).collect()
|
||||
}).unwrap_or(~[])
|
||||
|
@ -1,4 +1,5 @@
|
||||
use support::project;
|
||||
use cargo;
|
||||
|
||||
fn setup() {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user