@@ -5,7 +5,7 @@ import { args, command, flags, z } from "../../../zcli.ts";
55import { dataTable } from "../../../lib/data-table.ts" ;
66import { fields } from "../../../flags.ts" ;
77import { pickJson } from "../../../lib/pick-json.ts" ;
8- import { templates } from "../../../api/templates.ts" ;
8+ import { customTemplates } from "../../../api/templates.ts" ;
99import { defaultFields } from "../mod.ts" ;
1010
1111/**
@@ -15,13 +15,13 @@ import { defaultFields } from "../mod.ts";
1515const subCommands : ReturnType < typeof command > [ ] = [ ] ;
1616
1717export const del = command ( "delete" , {
18- short : "Delete a template" ,
18+ short : "Delete a custom template" ,
1919 long : `
20- Delete a template from a team.
20+ Delete a custom template from a team.
2121 ` ,
2222 commands : subCommands ,
2323 args : args ( ) . tuple ( [
24- z . string ( ) . describe ( "The ID of the template to delete" ) ,
24+ z . string ( ) . describe ( "The ID of the custom template to delete" ) ,
2525 ] ) . optional ( ) ,
2626 flags : flags ( {
2727 fields,
@@ -40,11 +40,11 @@ export const del = command("delete", {
4040 id = await input ( "ID:" , {
4141 filter : ( v ) => ! ! v . sequence . match ( / [ a - z A - Z 0 - 9 _ - ] / ) ,
4242 } ) ;
43- asserts ( id , "A template ID is required" ) ;
43+ asserts ( id , "A custom template ID is required" ) ;
4444 }
4545
4646 const response = await loading (
47- templates . delete ( { id } ) ,
47+ customTemplates . delete ( { id } ) ,
4848 ) ;
4949
5050 asserts ( response . ok , response ) ;
0 commit comments