From: Steven Baltakatei Sandoval Date: Sun, 5 Jul 2020 16:56:56 +0000 (+0000) Subject: feat(bkgpslog):Add functions, group code into functions X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/320ac29c93864f2d5f3229bbc8b628ddac5371f9?ds=sidebyside;hp=320ac29c93864f2d5f3229bbc8b628ddac5371f9 feat(bkgpslog):Add functions, group code into functions Add several fucntions to add future new feature (recipient dir watch) as well as to group existing code blocks into their own functions for readability. Changes include: * Add checkAgePubkey() function: checks that a provided string doesn't throw an error when fed as a recipient string to `age`. * Pushed several code blocks into their own "magic" functions ** magicParseRecipientDir() : (future feature): To be run at each buffer session to update the recipient array in response to changes in a specified recipient directory. ** magicParseRecipientArgs(): Parses strings provided by '-r' option and format output accordingly. Existing code. ** magicParseCompressionArgs(): Responds to '-c' option by specifying compression function and output file suffix. * Update showUsage() to document future '-R' recipient dir option. ---