{"_id":"@acidjs/cli","_rev":"3-6e0252585269fcb678bec6d99826b464","name":"@acidjs/cli","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@acidjs/cli","version":"0.1.0","description":"AcidJs cli","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"keywords":["cli"],"author":{"name":"Michael Arakilian"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/project-acidjs/cli.git"},"homepage":"https://github.com/project-acidjs/cli#readme","bugs":{"url":"https://github.com/project-acidjs/cli/issues"},"preferGlobal":true,"bin":{"acid":"bin/cli.js"},"dependencies":{"chalk":"^4.0.0","yargs":"^15.3.1"},"gitHead":"754d9f843eb60304bb076a7ea6d851602a31e146","_id":"@acidjs/cli@0.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tGmiaI4iwjBgFCcDV7x/jPB5n9+C5GlfAGVfF0DgOsbWgNcoxMlWBrmEfoBiVhwwmwyaNbXwQzOinl0E45hboA==","shasum":"7b6a29f0b6f0405399e7841fe2a1ef8746cd9f38","tarball":"https://registry.npmjs.org/@acidjs/cli/-/cli-0.1.0.tgz","fileCount":5,"unpackedSize":814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel1BACRA9TVsSAnZWagAAnTMP/3PgeXy3bMYoCQcwzM50\nbhoHPn4ASZKxiqYYScRc8g+n0ubJl9LxJp9KyBTK582z6swdq56RlyTBLpPB\nk0E8m+Gwgw8l/pSo4yS968XgKkNyAmA5/lMdjoKufwj4U1VuzHmrS4aT1HjV\nvpSluHFvJqPmfJj9ba24UENB4gwrFXoVth2HjwOO+Xl+7ISid7bGhMrDs15P\nhLCOlLF3g+Bt5RU7zDOmCtlrHtU5Mk/VvP+dTcu+S7i1555rey3pEnng9ogd\nBZuaYAh01jHYbxR4Z+KeII5Z0mJ7qNH0DJ8Ncwlu/UNSyQJ3Vy9QEjYnphnC\nGoPw8fwfSvBVIwncuJm6XpNF0MI869n5manK1VMIzuMkcuCkCe9o/VNmUPS+\n8VeJEkSha34CNBa1+iDsLmTq3vdZrjW+8Obv4EM/7SwbqoU2VJrMWxm0TaYj\nPBkXpahuqk9gIa/QHRCbcH0nNav4dayknnWgBQ/fnsEjXPIdMi3EAPYfgaMp\nbaoClqjHBzB7Q5UWKIM3LTpdY9f/zNMjtO3OoX2y5gOX18nmah0sPK/e2SAZ\nN7zUxGyh5zNdYkWZ1Yqeln66W+BtH33OAtYIv6TtkvopeHHTtj3KWUa2Qs5N\nto8fL4iUYMbMf5CM31F0rVMZfNbxIicSuCK/s8N3vZOPyZHFeHWo64Q9K2VF\nPHU8\r\n=YT3z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRFFs0vxOqZNtfDZR0htG7ocb+0SUYre9oRCajv3Wa/AiEArS/flY2MyCmMSFdOA8b9ZoepVYLq5ks521gCAi77+9w="}]},"maintainers":[{"name":"arakilian0","email":"arakilian0@gmail.com"}],"_npmUser":{"name":"arakilian0","email":"arakilian0@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.1.0_1586974783596_0.3849422778256595"},"_hasShrinkwrap":false},"0.1.1":{"name":"@acidjs/cli","version":"0.1.1","description":"AcidJs cli","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"keywords":["cli"],"author":{"name":"Michael Arakilian"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dont-do-drugs/cli.git"},"homepage":"https://github.com/dont-do-drugs/cli#readme","bugs":{"url":"https://github.com/dont-do-drugs/cli/issues"},"preferGlobal":true,"bin":{"acid":"bin/acid.js"},"dependencies":{"@hapi/joi":"^17.1.1","lodash.merge":"^4.6.2","yargs":"^15.3.1"},"gitHead":"754d9f843eb60304bb076a7ea6d851602a31e146","_id":"@acidjs/cli@0.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bq1Lizs2p0CT6IyS4dztyaAyIz5oeku7fQ/AIlfcSN61y//nTYu3jL46vtBsTa0CocptFDcGfrL6XCOzdpsWjQ==","shasum":"6ad0c6b0b0dfdf18e79ea2e1b74e21d84ae570f0","tarball":"https://registry.npmjs.org/@acidjs/cli/-/cli-0.1.1.tgz","fileCount":27,"unpackedSize":7866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemjl7CRA9TVsSAnZWagAAwZcP/1arr/og3ScvUAvN60AP\npHEAKzyhdI3jhq8ng/i5tFZx45KLcE7Z3x/sdHrf8VdLtmz6d6R03pPONklS\nZ+fe0wopN5ISFKd3kjXM/3LRS/zInLmPw+BCN1AxD0tmhEeWq5+gvIA5vP1O\n/b5bOQbHUVla9swXLK4h8tio3TRtE/B/z0Z82LuBYWoVLEVNokkalXRo0BeW\nnXKT6Rg+IR5fc5nPLSfOC1f8yifWcQ3Uvy9kJW6xHJ1jBd7ZniYuNtDlIL7/\n/6U+ojjGNRgbFa9alUzdCD6Q4AhcAglwvXJY79eWDgfJGvPBFzjf8jUjKP/h\nnsvSNPbsMvF6cQd/7vgINOSZKuxRCg4CHjV4nFdsyeaZdva0z04kjA1p3HDe\nIQWRYNNZ9nYnTM7oM4yt3OtSv2jCrEBo1/yGNiPFGyF+g8yj3qz/fwpVa4MS\nlygWZ+KriXfd/dzw2OaD+fYWjxBHYLpxMYxYeFdxxPzbP5oTCkv4H/SJV8f4\n7zY7rwYyUzB2YuCynQ3o2VexFTuYOD6YMdVeNmiEKlKwKLcCpxOADjt2k7jI\nE+dYoNMUBJ/l4dgjZlEAJG4hVb3LC8j6AZzWc7Xh5DwZSb65Lnc3VHYWxgEZ\nyJLu4s9SIZjpPcYU3jEgENMSJFmCMUx5+kghrtYjPV7M/okak3MA3nTvcC9e\nPq/x\r\n=qoWd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKSHBbXtNJxNOq8+VPC1PGo+peKtfEae7KcCmXfvaXPAiEAntTf+Tcwxd3bjxpnqt2jwSbdlXb2+i8qiT1VBFwRLyA="}]},"maintainers":[{"name":"arakilian0","email":"arakilian0@gmail.com"}],"_npmUser":{"name":"arakilian0","email":"arakilian0@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.1.1_1587165563226_0.5094678024208963"},"_hasShrinkwrap":false},"0.1.2":{"name":"@acidjs/cli","version":"0.1.2","description":"Create command line tools using a simple yargs wrapper.","main":"index.js","scripts":{"test":"node bin/acid.js hello test-script"},"keywords":["acidjs","cli","yargs","wrapper","configure"],"author":{"name":"Michael Arakilian"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/project-acid/cli.git"},"homepage":"https://github.com/project-acid/cli#readme","bugs":{"url":"https://github.com/project-acid/cli/issues"},"preferGlobal":true,"bin":{"acid":"bin/acid.js"},"dependencies":{"@acidjs/config":"^0.1.10","yargs":"^15.3.1"},"gitHead":"2c43bc05cf024775041e495ac4f0d986c966d4f0","_id":"@acidjs/cli@0.1.2","_nodeVersion":"10.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FPJnpAuJph63w/6Ylu0EYDCYaYFhG2q0RPHGvrRtSS+hmeB2yiX+gI+Thwz3gfG13FpE2lRpaUJ4FhMSs20J8A==","shasum":"6b76587f5584792905f57314f545fb734c9547f1","tarball":"https://registry.npmjs.org/@acidjs/cli/-/cli-0.1.2.tgz","fileCount":5,"unpackedSize":7176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenXaQCRA9TVsSAnZWagAAO30P/0QzU4t7MHOmZEm0VIof\nZLfdET6LnPYdahIV1QmRmrZZd2jcRUYCIbvmWIdzBIYrP2R8s7zivPABjgUD\nXfkuC7johKBMw5fqKyoNkcBXpEDI7AI7RuIIbcf3IPopFP57aRGl/Fgil++m\ne/m8hI4uKjWH1ebmUJn2/9v7aZ+7V9cT7XHxD2XQyPkVpLAqWUgp4qAl73sS\ntXi2Q1omLu7k7rB6yfKHTXvUXFehjHl7sWx1O5Y5RJbOUJ19LTAdjbpLKWDd\nO8574puf5yFmpijbNfe5o1YROa0BBIA+WGBs8AYdQlArKwycQIrXuJ6YR5Mc\nc9wAw4IRSw5Ei57fBgJoBmhSI2aOs061b7lIqw5xXBfBPyg1bxuCDjYAzcqt\nJ/BhV1pH01FSVOKN9b4Rc2Z/doko33kpbp1jzNwdTrD0jPim2ihGh5aq7aUb\nBAFUyg4pzdT4paBxM5UMTd/e1ySksWnw/T6VRX5NVa2a8IJMrq2RHfMxGLBQ\n4GSSiDia2Au1qdPbmYcbze39Elcja8eMtyrYFiJUOZNy+cPnYrkigzz0XkC0\n2ETuIdTbXIB7+rGZs+G3K0FPQC71q3vX467yp9N7Da3aCLo1P53FSmlEnU6G\nF6FVfbhh1Q/nBqrSBVSKwQM5vwYX8a5m4XcfmSI/SItY69p0WcUypikdVMrc\nDXdc\r\n=WDya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr2Sxmu0jAE4pQU7fE31kGVUBmjRIdJc7/J3bbrxcH2QIhALsVyi3T5ipa/rRjWfBkLN1gsfq8RGwGMfktY0D/Sy7k"}]},"maintainers":[{"name":"arakilian0","email":"arakilian0@gmail.com"}],"_npmUser":{"name":"arakilian0","email":"arakilian0@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_0.1.2_1587377807910_0.7055728722754548"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-15T18:19:43.350Z","0.1.0":"2020-04-15T18:19:43.783Z","modified":"2022-04-04T11:11:11.190Z","0.1.1":"2020-04-17T23:19:23.317Z","0.1.2":"2020-04-20T10:16:48.032Z"},"maintainers":[{"name":"arakilian0","email":"arakilian0@gmail.com"}],"description":"Create command line tools using a simple yargs wrapper.","homepage":"https://github.com/project-acid/cli#readme","keywords":["acidjs","cli","yargs","wrapper","configure"],"repository":{"type":"git","url":"git+https://github.com/project-acid/cli.git"},"author":{"name":"Michael Arakilian"},"bugs":{"url":"https://github.com/project-acid/cli/issues"},"license":"MIT","readme":"# Acid JS - CLI 💻\r\n\r\n[![CircleCI](https://circleci.com/gh/project-acid/cli.svg?style=shield)](https://circleci.com/gh/project-acid/cli)\r\n[![npm (scoped)](https://img.shields.io/npm/v/@acidjs/cli)](https://www.npmjs.com/package/@acidjs/cli)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/project-acid/cli/blob/master/LICENSE.md)\r\n\r\n### Create command line tools using a simple [yargs](http://yargs.js.org/) wrapper.\r\n\r\n✅ **Very little setup.**\r\n\r\n✅ **A lot out of the box.**\r\n\r\n## Install\r\n```\r\n$ npm install -g @acidjs/cli\r\n```\r\n\r\n## Usage\r\n*Note: A folder named `.acid` should exist in your projects main direcotry. When you do, you can configure the cli, and start creating your options and commands.*\r\n#### Create a command:\r\n\r\nCreate a `.js` file in a directory named `.acid/tasks` (you can [configure](#Configure) this path), then inside the file,  export an array with 4 entries:\r\n\r\n1. [Command](http://yargs.js.org/docs/#api-commandmodule) *(string)*\r\n2. [Description](http://yargs.js.org/docs/#api-commandmodule) *(string)*\r\n3. [Builder](http://yargs.js.org/docs/#api-positionalkey-opt) *(function)*\r\n4. [Handler](http://yargs.js.org/docs/#api-argv) *(function)*\r\n```js\r\nmodule.exports = [\r\n    'hello [name]',\r\n    'An example command',\r\n    (yargs) => {}, \r\n    (argv) => {\r\n        if(argv.name) console.log(`Hey ${argv.name}!`)\r\n    }\r\n]\r\n```\r\nIn the command line:\r\n![alt text](https://raw.githubusercontent.com/arakilian0/images/master/acidjs-cli-usage-v2.png \"Logo Title Text 1\")\r\n\r\nAll the files that live within `path.resolve('.acid', config.cli.entry.x)` will be registered to yargs. \r\nFor example, this is what actually gets called upon each valid command `(file)`:\r\n```js\r\nyargs.command(\r\n  ...require(\r\n    path.resolve(\r\n      '.acid', \r\n      config.cli.entry.command, \r\n      file\r\n    )\r\n  )\r\n)\r\n```\r\n\r\n## Configure\r\nTo overwrite defaults, create `.acid/config.yml` in the root directory of your project. If there is a mistake in your config file, you will be notified.\r\n\r\n**Defaults:**\r\n```yml\r\ncli:\r\n  help: true\r\n  color: magenta\r\n  logErrors: true\r\n  entry:\r\n    commands: tasks\r\n    options: tasks/options\r\n```\r\n\r\n## License\r\nMIT License\r\n\r\nCopyright (c) 2020 Michael Arakilian\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.","readmeFilename":"README.md"}