import{r as e,t}from"./chunk-74CEPOFO-V0JXh91S.mjs";import{i as n,n as r,r as i}from"./chunk-HDQ56CKY-DZc2LbWr.mjs";var a={name:`tail`,summary:`output the last part of files`,usage:`tail [OPTION]... [FILE]...`,options:[`-c, --bytes=NUM    print the last NUM bytes`,`-n, --lines=NUM    print the last NUM lines (default 10)`,`-n +NUM            print starting from line NUM`,`-q, --quiet        never print headers giving file names`,`-v, --verbose      always print headers giving file names`,`    --help         display this help and exit`]},o={name:`tail`,async execute(o,s){if(t(o))return e(a);let c=r(o,`tail`);if(!c.ok)return c.error;let{lines:l,bytes:u,fromLine:d}=c.options;return i(s,c.options,`tail`,e=>n(e,l,u,d??!1))}},s={name:`tail`,flags:[{flag:`-n`,type:`value`,valueHint:`number`},{flag:`-c`,type:`value`,valueHint:`number`},{flag:`-q`,type:`boolean`},{flag:`-v`,type:`boolean`}],stdinType:`text`,needsFiles:!0};export{o as n,s as t};
//# sourceMappingURL=chunk-DCAAORBQ-BUMlCZ4-.mjs.map