Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
559 changes: 38 additions & 521 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
- [Importing Tasks](https://task.mqlang.org/book/guide/imports.html): imports
- [Caching and Watch Mode](https://task.mqlang.org/book/guide/cache-watch.html): sources, outputs, --watch
- [Parameters, Env and Working Directory](https://task.mqlang.org/book/guide/params-env.html): params, env, dir
- [Aliases, Default and Private Tasks](https://task.mqlang.org/book/guide/aliases-private.html): alias, private, default_task
- [Interactive TUI](https://task.mqlang.org/book/guide/tui.html): mq-task tui
- [Checking a Task File](https://task.mqlang.org/book/guide/check.html): check, --strict, --json
- [Dependency Graph](https://task.mqlang.org/book/guide/graph.html): mq-task graph
- [Shell Completions](https://task.mqlang.org/book/guide/completions.html): mq-task completions
- [Meta keys](https://task.mqlang.org/book/reference/meta.html): All meta keys
- [CLI](https://task.mqlang.org/book/reference/cli.html): Commands and options
- [Exit codes](https://task.mqlang.org/book/reference/exit-codes.html): Exit code behaviour
Expand Down
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::fs;
use std::path::{Path, PathBuf};
use std::sync::Mutex;

use crate::runner::Section;
use crate::section::Section;
use crate::util::Fnv;

const CACHE_DIR: &str = ".mq-task";
Expand Down
9 changes: 5 additions & 4 deletions src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ use serde::Serialize;
use crate::condition::{self, CondContext};
use crate::config::Config;
use crate::error::Error;
use crate::runner::{LoopSpec, Runner, Section};
use crate::runner::Runner;
use crate::schedule::{build_plan, resolve_call};
use crate::section::{LoopSpec, Section};
use crate::util::closest;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
Expand Down Expand Up @@ -565,7 +566,7 @@ fn check_conditions(sections: &[Section], out: &mut Vec<Diagnostic>) {
#[cfg(test)]
mod tests {
use super::*;
use crate::runner::{CodeBlock, ParamDef};
use crate::section::{CodeBlock, ParamDef};

fn task(title: &str, depends: &[&str]) -> Section {
Section {
Expand Down Expand Up @@ -603,11 +604,11 @@ mod tests {
fn a_script_reading_an_undeclared_param_is_warned_about() {
let mut deploy = with_code(task("deploy", &[]), "echo $MX_PARAM_REGOIN ${MX_PARAM_ENV}");
deploy.params = vec![
crate::runner::ParamDef {
crate::section::ParamDef {
name: "region".into(),
..Default::default()
},
crate::runner::ParamDef {
crate::section::ParamDef {
name: "env".into(),
..Default::default()
},
Expand Down
2 changes: 1 addition & 1 deletion src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ use crate::condition::{self, CondContext};
use crate::config::{Config, ExecutionMode};
use crate::error::{Error, Result};
use crate::events::{NullObserver, RunObserver, Stream, TaskStatus};
use crate::runner::{ParamDef, Section};
use crate::schedule::{Deferred, loop_item_vars};
use crate::section::{ParamDef, Section};
use crate::util::closest;
use crate::vars::{self, ShellCache, VarDef};

Expand Down
4 changes: 2 additions & 2 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use std::collections::{HashMap, HashSet};
use std::fmt::Write;

use crate::runner::Section;
use crate::schedule::{find_section, resolve_call};
use crate::section::Section;

/// Output format for [`render`].
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
Expand Down Expand Up @@ -238,7 +238,7 @@ mod tests {

#[test]
fn badges_describe_the_notable_settings() {
use crate::runner::LoopSpec;
use crate::section::LoopSpec;
let s = Section {
title: "t".into(),
for_each: Some(LoopSpec::List(vec!["a".into(), "b".into()])),
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod exec;
pub mod graph;
pub mod runner;
pub mod schedule;
pub mod section;
pub mod summary;
pub mod template;
pub mod tui;
Expand Down
Loading
Loading