{"id":15517232,"url":"https://github.com/pcfens/puppet-command_args","last_synced_at":"2025-10-29T03:09:06.063Z","repository":{"id":57664934,"uuid":"44616269","full_name":"pcfens/puppet-command_args","owner":"pcfens","description":"A puppet function to convert a hash to command line arguments","archived":false,"fork":false,"pushed_at":"2016-03-21T21:05:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T05:41:18.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcfens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-20T15:35:03.000Z","updated_at":"2018-11-22T19:20:10.000Z","dependencies_parsed_at":"2022-09-26T20:31:12.622Z","dependency_job_id":null,"html_url":"https://github.com/pcfens/puppet-command_args","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcfens%2Fpuppet-command_args","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcfens%2Fpuppet-command_args/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcfens%2Fpuppet-command_args/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcfens%2Fpuppet-command_args/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcfens","download_url":"https://codeload.github.com/pcfens/puppet-command_args/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153896,"owners_count":20569408,"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":[],"created_at":"2024-10-02T10:12:13.052Z","updated_at":"2025-10-29T03:09:05.965Z","avatar_url":"https://github.com/pcfens.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"puppet-command_args\n===================\n\n[![Build Status](https://travis-ci.org/pcfens/puppet-command_args.svg?branch=master)](https://travis-ci.org/pcfens/puppet-command_args)\n\nConvert a hash into command line arguments. The first argument is a hash\nof arguments that should be passed, along with corresponding value.\n\nOptional (positional) arguments:\n1. The flag prefix to use (defaults to '--')\n2. The separator to use (defaults to '=')\n\nExample:\n\n```\n$arguments = {\n  'aString'   =\u003e 'words',\n  'secure'    =\u003e true,\n  'insecure'  =\u003e false,\n  'array'     =\u003e ['item1', 'item2'],\n}\n\ncommand_args($arguments)\n# =\u003e --aString=words --secure --array=item1 --array=item2\n\ncommand_args($arguments, '-')\n# =\u003e -aString=words -secure -array=item1 -array=item2\n\ncommand_args($arguments, '--', ' ')\n# =\u003e --aString words --secure --array item1 --array item2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcfens%2Fpuppet-command_args","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcfens%2Fpuppet-command_args","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcfens%2Fpuppet-command_args/lists"}