-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b178bd1
commit 05f5f2c
Showing
112 changed files
with
1,968 additions
and
673 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
use crate::cli::CliTvChannel; | ||
use crate::components::finders::Entry; | ||
use crate::components::finders::{ | ||
AliasFinder, EnvVarFinder, FileFinder, GrepFinder, StdinFinder, | ||
}; | ||
|
||
use super::finders::Finder; | ||
|
||
#[derive(television_derive::Channel, television_derive::FromCliChannel)] | ||
pub enum TvChannel { | ||
Env(EnvChannel), | ||
Files(FilesChannel), | ||
Grep(GrepChannel), | ||
Stdin(StdinChannel), | ||
Alias(AliasChannel), | ||
} | ||
|
||
#[derive(television_derive::ConcreteChannel)] | ||
pub struct EnvChannel { | ||
pub finder: EnvVarFinder, | ||
} | ||
|
||
#[derive(television_derive::ConcreteChannel)] | ||
pub struct FilesChannel { | ||
pub finder: FileFinder, | ||
} | ||
|
||
#[derive(television_derive::ConcreteChannel)] | ||
pub struct GrepChannel { | ||
pub finder: GrepFinder, | ||
} | ||
|
||
#[derive(television_derive::ConcreteChannel)] | ||
pub struct StdinChannel { | ||
pub finder: StdinFinder, | ||
} | ||
|
||
#[derive(television_derive::ConcreteChannel)] | ||
pub struct AliasChannel { | ||
pub finder: AliasFinder, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.