Build all artifacts from packlist
Summary: Instead of hardcoding the targets, it will now build all specified types in the "packlist". Reviewed By: jknoxville Differential Revision: D21349762 fbshipit-source-id: 58f4a3bbf0b6ff4dd87eb44bbd7b200127da8017
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2c20f016d4
commit
8818fbe375
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
use clap::arg_enum;
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
arg_enum! {
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, serde::Deserialize)]
|
||||
@@ -23,3 +24,13 @@ pub enum PackType {
|
||||
Frameworks,
|
||||
Core,
|
||||
}
|
||||
|
||||
impl Display for PackType {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
use PackType::*;
|
||||
match *self {
|
||||
Frameworks => write!(f, "frameworks"),
|
||||
Core => write!(f, "core"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user