Skip to content

Commit 390a2bb

Browse files
xtask: Stub in auto_release command
1 parent 88440c3 commit 390a2bb

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

xtask/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// except according to those terms.
88

99
mod package;
10+
mod release;
1011
mod util;
1112

1213
use package::Package;
@@ -110,11 +111,13 @@ fn test_gpt_disk_io() {
110111

111112
fn main() {
112113
let args: Vec<_> = env::args().collect();
114+
let arg_auto_release = "auto_release";
113115
let arg_test_all = "test_all";
114116
let arg_test_uguid = "test_uguid";
115117
let arg_test_gpt_disk_types = "test_gpt_disk_types";
116118
let arg_test_gpt_disk_io = "test_gpt_disk_io";
117119
let actions = &[
120+
arg_auto_release,
118121
arg_test_all,
119122
arg_test_uguid,
120123
arg_test_gpt_disk_types,
@@ -126,6 +129,9 @@ fn main() {
126129
}
127130

128131
let action = &args[1];
132+
if action == arg_auto_release {
133+
release::auto_release();
134+
}
129135
if action == arg_test_all || action == arg_test_uguid {
130136
test_uguid();
131137
}

xtask/src/release.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
pub fn auto_release() {
10+
todo!()
11+
}

0 commit comments

Comments
 (0)