YAPET2CSV(1)

πŸ’– YAPET2CSV β€” the manual, but make it make sense πŸ’–

okay bestie, sit down, grab a boba, because today we're talking about yapet2csv(1) from YAPET and honestly? it's giving ✨*file converter*✨ and it's about to eat. no cap.


🌸 NAME 🌸

yapet2csv β€” convert a YAPET file into a CSV file. that's it. that's the whole gig. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

yapet2csv [[-c] [-h] [-V]] | [[-H] | [-p password] | [-q] [-s
separator]] src dst

lowkey the synopsis is doing a little two-modes thing, so read it carefully, bestie. either you're asking for help/copyright/version, or you're actually converting. pick a lane πŸŽ€


✨ DESCRIPTION ✨

so like, yapet2csv takes a YAPET file and turns it into a CSV file. that's the whole vibe. and here's the part that matters: the source file you name with src will not be modified. not even a little. your original is safe, periodt. 🫢

the CSV file it spits out as dst? it has a very specific format, and here's the layout β€” column by column, no skipping:

  • Column 1 β†’ Record Name
  • Column 2 β†’ Host Name
  • Column 3 β†’ User Name
  • Column 4 β†’ Password
  • Column 5 β†’ Comment

five columns, five fields, in that exact order. iconic lineup honestly. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -h β€” show help. the "bestie what do I do" button.
  • -c β€” show copyright.
  • -V β€” show version.
  • -H β€” add a header line to the CSV file. yes, a lil title row, we love labels.
  • -p β€” use the master password password you provide to decrypt src. 🚨 the use of this option is not recommended for security reasons. read that again, bestie. by default, yapet2csv prompts for the master password β€” which is the safer move, and honestly the cuter move.
  • -q β€” do not produce verbose output, except for error messages. by default, yapet2csv will print a period for each converted password record to stdout. so yeah, normally it's going dot dot dot at you like it's typing a message. πŸ™ˆ
  • src β€” the source YAPET fiel name (yes, "fiel", that's what the original says, i'm keeping it, character for character πŸ₯Ή) which will be converted to CSV and stored in dst. heads up: if the file path does not end in .pet, yapet2csv will append .pet to the operand. so don't come crying if your file got a lil glow-up suffix. πŸ’–
  • dst β€” the pathname where the converted YAPET file will be stored. the file must not exist prior to invoking yapet2csv. like, it has to be brand new. no overwriting, no recycling, fresh file energy only. 🌱

🌈 EXIT STATUS 🌈

  • 0 β€” successful completion. slay. πŸŽ‰
  • 1 β€” error while parsing command line arguments. the command line said "huh?" πŸ’€
  • 2 β€” file dst already exists. told you, fresh file only!! 😭
  • 3 β€” an error occurred. just. an error. it's giving vague, but okay.

πŸ’€ BUGS πŸ’€

found a bug? don't suffer in silence, bestie. please report bugs to https://github.com/RafaelOstertag/yapet/issues. the maintainer wants to know, fr fr. πŸ›βœ¨


πŸ‘‘ AUTHORS πŸ‘‘

Rafael Ostertag rafi@guengel.ch. the mastermind. the moment. the icon. 🫢


πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, together. iykyk. 🌸


ngl that's the entire page. go forth and convert responsibly. πŸ’–

this has been YAPET 2.6, dated 2022-03-12 β€” mwah, bye bestie, drink some water 🧚✨

πŸ“¦ where this page comes from