Skip to content

Instantly share code, notes, and snippets.

@djanatyn
Created November 26, 2022 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djanatyn/29b5a0ccf971aea46d57bf7370f54fc0 to your computer and use it in GitHub Desktop.
Save djanatyn/29b5a0ccf971aea46d57bf7370f54fc0 to your computer and use it in GitHub Desktop.
ganzu
[src/main.rs:284] (filter, file) = (
Mimetype(
"text/plain",
),
FileSnapshot {
input_name: "/home/djanatyn/query.graphql",
absolute_path: "/home/djanatyn/query.graphql",
last_mtime: 1643587565,
mimetype: "text/plain",
},
)
meta version="1.0" created="1669472812"
matches {
file {
snapshot \
input_name="query.graphql" \
absolute_path="/home/djanatyn/query.graphql" \
last_mtime="1643587565"
action {
move dest="/home/djanatyn/documents"
}
}
}
Rule {
filters: vec![
Filter::Mimetype("text/html"),
Filter::Mimetype("text/plain"),
],
action: FilterAction::Move {
dest: dest::DOCUMENTS,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment