1769192878

This commit is contained in:
2026-01-23 20:27:58 +02:00
parent 860a494d65
commit 635796cf77
2 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ def validate-input [subject: string, shortcode: string, number?: int] {
# Check subject exists (case insensitive)
let subject_lower = ($subject | str downcase)
let subjects = (open $subjects_toml | get subjects | columns)
let subjects = (open $subjects_toml | columns)
if $subject_lower not-in $subjects {
error make -u {
msg: $"Subject '($subject)' not found in configuration"
@@ -74,7 +74,7 @@ def generate-doc-toml [shortcode: string, subject: string, target_dir: string, n
let defaults = (open $"($config_dir)/defaults.toml")
let subjects = (open $"($config_dir)/subjects.toml")
let subject_data = ($subjects | get subjects | get $subject)
let subject_data = ($subjects | get $subject)
let work_type = ($defaults | get work_types | try { get $shortcode } catch { $shortcode })
{

View File

@@ -1,4 +1,4 @@
[subjects.erv]
[erv]
name = "ЕРВ"
full_name = "Електрорадіовимірювання"
mentors = [
@@ -6,14 +6,14 @@ mentors = [
{name = "Франко І. Я.", degree = "Асистент кафедри ПІ", gender = "m"}
]
[subjects.fiz]
[fiz]
name = "ФІЗ"
full_name = "Фізика"
mentors = [
{name = "Шевченко Т. Г.", degree = "Доцент кафедри ПІ", gender = "m"}
]
[subjects.vm]
[vm]
name = "ВМ"
full_name = "Вища математика"
mentors = []