Complete local-first Rig provider migration
This commit is contained in:
@@ -22,3 +22,13 @@ fn only_oss_disables_warp_service_egress() {
|
||||
assert!(Channel::Integration.allows_warp_service_egress());
|
||||
assert!(!Channel::Oss.allows_warp_service_egress());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn only_oss_is_local_first() {
|
||||
assert!(!Channel::Stable.is_local_first());
|
||||
assert!(!Channel::Preview.is_local_first());
|
||||
assert!(!Channel::Dev.is_local_first());
|
||||
assert!(!Channel::Local.is_local_first());
|
||||
assert!(!Channel::Integration.is_local_first());
|
||||
assert!(Channel::Oss.is_local_first());
|
||||
}
|
||||
|
||||
@@ -63,6 +63,12 @@ impl Channel {
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether the channel is local-first and must not expose Warp-owned
|
||||
/// identity, sharing, or workspace state to the product surface.
|
||||
pub fn is_local_first(&self) -> bool {
|
||||
!self.allows_warp_service_egress()
|
||||
}
|
||||
|
||||
/// Returns the CLI command name corresponding to this channel.
|
||||
pub fn cli_command_name(&self) -> &'static str {
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user