write-mime-multipart(1)

✨ write-mime-multipart ✨

okay bestie, welcome to the cloud-utils glow-up πŸ’– this little cutie is called write-mime-multipart, and she is literally the utility for creating mime-multipart files β€” most likely so you can yeet them into user data and cloud-init 🌸 yeah. that's her whole thing. icon behavior.


πŸ¦‹ SYNOPSIS πŸ¦‹

write-mime-multipart [options]

like. that's it. that's the whole summoning ritual 😌


πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• this program was made to help you write data that cloud-init can actually consume. and cloud-init? she reads mime multipart as user-data. that's the entire pipeline, no cap. you write it, she eats it πŸ’…

and now the flags, because we love a good flag πŸ’–

  • -h | --help β€” shows you the usage message. your classic "help me pls" button 🫢
  • -o | --output FILE β€” writes the output into FILE (and yes, if you don't say anything, the default is stdout, so it just spills onto your screen 🌊)
  • -z | --gzip β€” compresses the output with gzip. squeeze it. zip it. slay πŸ”₯
  • -d | --default DEFTYPE β€” if you don't hand over a mime-type yourself, she just assumes a mime-type of DEFTYPE. and the default default is 'text/plain', periodt πŸ’…
  • --delim DELIM β€” uses DELIM as the delimiter, and ngl the default is just ':' ✨
okay real talk: -d/--default is the fallback so your files don't show up to the function with no mime-type and no explanation πŸ™ˆ the default is 'text/plain', remember it.

πŸ’œ EXAMPLES πŸ’œ

here's the moment you've been waiting for, the main character example 🌈

  write-mime-multipart --gzip --output=combined-userdata.txt boothook.txt:text/cloud-boothook include-file.txt:text/x-include-url

see how she clocks the file:type pairing with that : delimiter? chef's kiss 😭 that's the whole vibe. combo of gzip, an output file, and two files each tagged with their own mime-type πŸŽ€


🌸 AUTHOR 🌸

This manpage and the utility was written by Scott Moser <scott.moser@canonical.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. πŸ’š

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. go read it, bestie, it's free and it's iconic πŸ“–βœ¨


and that's the whole page fr fr 🫢 this was write-mime-multipart(1) from cloud-utils, dated 11 Jan 2011 β€” a real one, an oldie but a goodie πŸ‘‘πŸ’– bye babe, go make some multipart magic ✨

πŸ“¦ where this page comes from