message: refactor: switch on global user for preview upload
diff: @@ -194,6 +194,8 @@ fn run() -> Result<(), failure::Error> {
  commands::build(&project)?;
  } else if let Some(matches) = matches.subcommand_matches("preview") {
  info!("Getting project settings");
  + let project = settings::project::Project::new()?;
  + let user = settings::global_user::GlobalUser::new().ok();
  let method = HTTPMethod::from_str(matches.value_of("method").unwrap_or("get"));
  @@ -202,7 +204,7 @@ fn run() -> Result<(), failure::Error> {
  None => None,
  };
  - commands::preview(method, body)?;
  + commands::preview(&project, user, method, body)?;
  } else if matches.subcommand_matches("whoami").is_some() {
  info!("Getting User settings");
  let user = settings::global_user::GlobalUser::new()?;
  