{"id":19007197,"url":"https://github.com/ro31337/yaask","last_synced_at":"2025-10-30T16:22:23.814Z","repository":{"id":145344701,"uuid":"117764988","full_name":"ro31337/yaask","owner":"ro31337","description":"Make your yaml configurable with interactive configurations!","archived":false,"fork":false,"pushed_at":"2020-06-08T20:14:20.000Z","size":90,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T19:52:12.216Z","etag":null,"topics":["config","configuration","yaml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ro31337.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-17T01:20:56.000Z","updated_at":"2023-10-20T09:55:32.000Z","dependencies_parsed_at":"2023-07-03T09:17:08.472Z","dependency_job_id":null,"html_url":"https://github.com/ro31337/yaask","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ro31337/yaask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro31337%2Fyaask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro31337%2Fyaask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro31337%2Fyaask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro31337%2Fyaask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ro31337","download_url":"https://codeload.github.com/ro31337/yaask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro31337%2Fyaask/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266161900,"owners_count":23885927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","configuration","yaml"],"created_at":"2024-11-08T18:36:30.171Z","updated_at":"2025-10-30T16:22:18.748Z","avatar_url":"https://github.com/ro31337.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yaask\n\nMake your yaml configurable with interactive configurations!\n\n# Requirements\n\n* Node.js 4.2+\n* npm\n\n# Install\n\n```\nnpm install yaask -g\n```\n\n# Usage\n\n```\nyaask settings-sample.yml -o settings.yml\n```\n\nBefore:\n\n```yaml\n# Your yaml file goes here\n# These parameters will remain the same:\nfoo: 1\nbar: 2\n\n# Here we ask for the value:\nname: # @ask \"Your name?\"\n\n# The same as above, but with default value:\ncity: # @ask \"City you're from?\" (default San Francisco)\n\n# You can select one of the options:\ncoffee: # @ask \"Do you want some coffee?\" yes|no\n\n# As many options as you want:\nappointment_time: # @ask \"Select appointment time\" 9am | 11am | 1pm | 3pm | 5pm\n\n# With explanation for each option:\ncloud_provider: # @ask \"Your cloud provider?\" aws (Amazon AWS) | azure (Microsoft Azure) | gloud (Google Cloud)\n\n# Or for some of them:\nlog_type: # @ask \"Select log type\" error | warn | info | verbose | none (I don't need any logging)\n```\n\nAfter:\n\n```yaml\n# Your yaml file goes here\n# These parameters will remain the same:\nfoo: 1\nbar: 2\n\n# Here we ask for the value:\nname: Roman # @ask \"Your name?\"\n\n# The same as above, but with default value:\ncity: San Francisco # @ask \"City you're from?\" (default San Francisco)\n\n# You can select one of the options:\ncoffee: no # @ask \"Do you want some coffee?\" yes|no\n\n# As many options as you want:\nappointment_time: 3pm # @ask \"Select appointment time\" 9am | 11am | 1pm | 3pm | 5pm\n\n# With explanation for each option:\ncloud_provider: azure # @ask \"Your cloud provider?\" aws (Amazon AWS) | azure (Microsoft Azure) | gloud (Google Cloud)\n\n# Or for some of them:\nlog_type: none # @ask \"Select log type\" error | warn | info | verbose | none (I don't need any logging)\n```\n\n# Formats\n\nThere are few formats that can be used after `@ask` keyword.\n\n## Simple\n\nWith simple format you'll just ask for input:\n\n```\n\"How many cups of coffee do you want?\"\n```\n\nWithout quotes:\n\n```\nHow many cups of coffee do you want?\n```\n\nWith colon:\n\n```\nHow many cups of coffee do you want:\n```\n\nYaml file example:\n\n```yaml\ncups: # @ask How many cups of coffee do you want?\n```\n\n## Default\n\nDefault format allows to specify default value:\n\n```\n\"City you're from?\" (default San Francisco)\n```\n\nWithout quotes:\n\n```\nCity you're from? (default San Francisco)\n```\n\nWith colon:\n\n```\nCity you're from : (default San Francisco)\n```\n\nWithout anything:\n\n```\nCity you're from (default San Francisco)\n```\n\nYaml file example (will override value if already specified):\n\n```yaml\ncity: # @ask City you're from? (default San Francisco)\n```\n\n## List\n\nList format allows to specify the list of options:\n\n```\n\"Do you want some coffee?\" yes|no\n```\n\nWith some spacing:\n\n```\n\"Do you want some coffee?\" yes | no\n```\n\nWith description (description is visible to the user, but value will be used):\n\n```\n\"Do you want some coffee?\" yes (Yes, please) | no (No, thank you)\n```\n\nWith optional description:\n\n```\n\"Do you want some coffee?\" yes (Yes, please) | no\n```\n\nWithout quotes:\n\n```\nDo you want some coffee? yes | no\n```\n\nWithout question mark:\n\n```\nCup size : small | medium | large\n```\n\nYaml file example:\n\n```yaml\ncoffee: # @ask Do you want some coffee? yes (Yes, please) | no (No, thank you)\ncup_size: # @ask Cup size : small | medium | large\n```\n\n# Why?\n\nI use it to make my Docker containers configurable.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fro31337%2Fyaask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fro31337%2Fyaask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fro31337%2Fyaask/lists"}