Skip to content

Commit ab95f8f

Browse files
wrong wrong wrong
1 parent b938076 commit ab95f8f

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

operation/src/expand_files.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use std::io::BufReader;
88
use std::sync::Arc;
99
use stream::Entry;
1010
use stream::Stream;
11-
use super::OperationBe2;
12-
use super::OperationBeForBe2;
11+
use super::OperationBe;
1312
use super::OperationRegistrant;
1413
use super::SubOperationOption;
1514
use super::TwoRecordUnionOption;
@@ -28,11 +27,9 @@ pub struct Options {
2827

2928
pub(crate) type Impl = OperationRegistrant<ImplBe>;
3029

31-
pub(crate) type ImplBe = OperationBeForBe2<ImplBe2>;
30+
pub(crate) struct ImplBe();
3231

33-
pub(crate) struct ImplBe2();
34-
35-
impl Optionsable for ImplBe2 {
32+
impl Optionsable for ImplBe {
3633
type Options = Options;
3734

3835
fn options(opt: &mut OptionsPile<Options>) {
@@ -42,7 +39,7 @@ impl Optionsable for ImplBe2 {
4239
}
4340
}
4441

45-
impl OperationBe2 for ImplBe2 {
42+
impl OperationBe for ImplBe {
4643
fn names() -> Vec<&'static str> {
4744
return vec!["expand-files"];
4845
}
@@ -51,6 +48,10 @@ impl OperationBe2 for ImplBe2 {
5148
return "run an operation on multiple files, themselves listed in input record values";
5249
}
5350

51+
fn get_extra(o: Arc<OptionsValidated>) -> Vec<String> {
52+
return o.op.extra.clone();
53+
}
54+
5455
fn stream(o: Arc<OptionsValidated>) -> Stream {
5556
return stream::closures(
5657
(),

operation/src/expand_lines.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use record::RecordTrait;
55
use std::sync::Arc;
66
use stream::Entry;
77
use stream::Stream;
8-
use super::OperationBe2;
9-
use super::OperationBeForBe2;
8+
use super::OperationBe;
109
use super::OperationRegistrant;
1110
use super::SubOperationOption;
1211
use super::TwoRecordUnionOption;
@@ -25,11 +24,9 @@ pub struct Options {
2524

2625
pub(crate) type Impl = OperationRegistrant<ImplBe>;
2726

28-
pub(crate) type ImplBe = OperationBeForBe2<ImplBe2>;
27+
pub(crate) struct ImplBe();
2928

30-
pub(crate) struct ImplBe2();
31-
32-
impl Optionsable for ImplBe2 {
29+
impl Optionsable for ImplBe {
3330
type Options = Options;
3431

3532
fn options(opt: &mut OptionsPile<Options>) {
@@ -39,7 +36,7 @@ impl Optionsable for ImplBe2 {
3936
}
4037
}
4138

42-
impl OperationBe2 for ImplBe2 {
39+
impl OperationBe for ImplBe {
4340
fn names() -> Vec<&'static str> {
4441
return vec!["expand-lines"];
4542
}
@@ -48,6 +45,10 @@ impl OperationBe2 for ImplBe2 {
4845
return "run an operation on individual lines, themselves read from input record values";
4946
}
5047

48+
fn get_extra(o: Arc<OptionsValidated>) -> Vec<String> {
49+
return o.op.extra.clone();
50+
}
51+
5152
fn stream(o: Arc<OptionsValidated>) -> Stream {
5253
return stream::closures(
5354
(),

operation/src/provenance.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use record::Record;
55
use std::sync::Arc;
66
use stream::Entry;
77
use stream::Stream;
8-
use super::OperationBe2;
9-
use super::OperationBeForBe2;
8+
use super::OperationBe;
109
use super::OperationRegistrant;
1110
use super::SubOperationOption;
1211

@@ -23,11 +22,9 @@ pub struct Options {
2322

2423
pub(crate) type Impl = OperationRegistrant<ImplBe>;
2524

26-
pub(crate) type ImplBe = OperationBeForBe2<ImplBe2>;
25+
pub(crate) struct ImplBe();
2726

28-
pub(crate) struct ImplBe2();
29-
30-
impl Optionsable for ImplBe2 {
27+
impl Optionsable for ImplBe {
3128
type Options = Options;
3229

3330
fn options(opt: &mut OptionsPile<Options>) {
@@ -36,7 +33,7 @@ impl Optionsable for ImplBe2 {
3633
}
3734
}
3835

39-
impl OperationBe2 for ImplBe2 {
36+
impl OperationBe for ImplBe {
4037
fn names() -> Vec<&'static str> {
4138
return vec!["provenance"];
4239
}
@@ -45,6 +42,10 @@ impl OperationBe2 for ImplBe2 {
4542
return "run an operation on individual inputs and stamp outputs with original input";
4643
}
4744

45+
fn get_extra(o: Arc<OptionsValidated>) -> Vec<String> {
46+
return o.op.extra.clone();
47+
}
48+
4849
fn stream(o: Arc<OptionsValidated>) -> Stream {
4950
return stream::closures(
5051
o.op.wr.stream(),

0 commit comments

Comments
 (0)