3
5
Fork
You've already forked xut
3

feat: template_list #15

Merged
mobinmob merged 3 commits from oSoWoSo/xut:template_list into master 2025年10月14日 10:29:32 +02:00
Contributor
Copy link
No description provided.
xut Outdated
@ -183,0 +197,4 @@
done
echo "$template_list" > "$conf_workdir"/template_list
msg debug "Template merge completed."
msg info "Available templates: ${green}${bold}$(cat $conf_workdir/template_list | wc -w)${reset_colour}"
Owner
Copy link

That should be a debug message, right?

That should be a debug message, right?
Author
Contributor
Copy link

Line 199 it's not really needed

Line 200 I want see number of templates (if changed) everytime

Line 199 it's not really needed Line 200 I want see number of templates (if changed) everytime
zenobit marked this conversation as resolved
zenobit changed title from (削除) template_list (削除ここまで) to feat: template_list 2025年10月14日 05:16:15 +02:00
xut
@ -191,6 +213,26 @@ xbps_src_command() {
msg info "[./xbps-src $op_xbps_src] executed successfully!" && exit 0
}
search_templates() {
Owner
Copy link

There is no need for this function - search_xtra_templates already works and is actually called in main().

There is no need for this function - `search_xtra_templates` already works and is actually called in `main()`.
Author
Contributor
Copy link

I know
But doesn't search in void-packages as new function
You want one change at a time
Next step:

  • remove search_xtra_templates()
  • change call to new function in main()

I just forgot put it in this MR when I splitted changes

I know But doesn't search in void-packages as new function You want one change at a time Next step: - remove search_xtra_templates() - change call to new function in main() I just forgot put it in this MR when I splitted changes
Owner
Copy link

search_templates and search_xtra_templates are the same except the name, right? Why not rename it then?
If you want a search that will display results from void-packages, then create a separate template list and report seperatelly the results.
You can use a single search function and call it with different positional arguments in main.
search_templates unofficial
search_templates official
and report results with the official or unofficial header depending on the ${1} positional argument.

`search_templates` and `search_xtra_templates` are the same except the name, right? Why not rename it then? If you want a search that will display results from void-packages, then create a separate template list and report seperatelly the results. You can use a single search function and call it with different positional arguments in main. `search_templates unofficial` `search_templates official` and report results with the official or unofficial header depending on the ${1} positional argument.
Author
Contributor
Copy link

search_templates official
search_templates abysss
search_templates void-extra
etc

I want separate all repos to own lists as we discused in issue 8 ...

Respective in one list with source repo defined like:
void-packages: foo
abyss: xut
...

But later...

`search_templates official` `search_templates abysss` `search_templates void-extra` etc I want separate all repos to own lists as we discused in issue [8](https://codeberg.org/mobinmob/xut/issues/8) ... Respective in one list with source repo defined like: void-packages: foo abyss: xut ... But later...

Merged, thanks!

Merged, thanks!
zenobit deleted branch template_list 2025年10月14日 10:59:26 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mobinmob/xut!15
Reference in a new issue
mobinmob/xut
No description provided.
Delete branch "oSoWoSo/xut:template_list"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?