{"id":17432094,"url":"https://github.com/0mp/moinmoincli","last_synced_at":"2025-07-25T07:33:52.260Z","repository":{"id":82148980,"uuid":"145100740","full_name":"0mp/moinmoincli","owner":"0mp","description":"Edit existing MoinMoin wiki pages from a command line","archived":false,"fork":false,"pushed_at":"2019-12-27T05:48:08.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T01:15:30.840Z","etag":null,"topics":["cli","freebsd","moinmoin","moinmoin-wiki","shell"],"latest_commit_sha":null,"homepage":"https://www.freshports.org/www/moinmoincli","language":"Shell","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/0mp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-17T09:26:42.000Z","updated_at":"2019-12-27T05:48:05.000Z","dependencies_parsed_at":"2023-03-01T02:30:43.745Z","dependency_job_id":null,"html_url":"https://github.com/0mp/moinmoincli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/0mp/moinmoincli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mp%2Fmoinmoincli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mp%2Fmoinmoincli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mp%2Fmoinmoincli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mp%2Fmoinmoincli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0mp","download_url":"https://codeload.github.com/0mp/moinmoincli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0mp%2Fmoinmoincli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266973250,"owners_count":24014649,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","freebsd","moinmoin","moinmoin-wiki","shell"],"created_at":"2024-10-17T08:24:05.651Z","updated_at":"2025-07-25T07:33:52.204Z","avatar_url":"https://github.com/0mp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\n**moinmoincli** - edit existing MoinMoin wiki pages from a command line\n\n# SYNOPSIS\n\n**moinmoincli**\n\\[**-hquv**]\n\\[**-f**\u0026nbsp;*textfile*]\n\\[**-n**\u0026nbsp;*username*]\n\\[**-t**\u0026nbsp;*target*]\n\\[*selector*]\n\n# DESCRIPTION\n\n**moinmoincli**\nis an interactive utility to edit existing MoinMoin wiki pages from\na command line.\n**moinmoincli**\nwas only tested with the\nFreeBSD\nWiki\nwhich is using the MoinMoin engine.\nThe\nFreeBSD\nWiki address is also hard-coded into\n**moinmoincli**\nas the default web service the utility works with.\n\n**moinmoincli**\ncannot create new wiki pages.\n\nWhen\n**moinmoincli**\nis run in order to update a wiki page, a diff is presented to the\nuser to confirm the changes.\nIt is done by providing a comment describing the changes.\nNext, a summary and the action menu is displayed.\nThe summary includes the username, the target, the comment, and the\ntext file name.\nActions that could be entered at the action menu prompt are\ndescribed in the\n*ACTION MENU*\nsubsection.\nOnce the user confirms requested changes to be processed, the password prompt\nis presented to the user.\n\n## Command-line options\n\nThe options are as follows:\n\n**-f** *textfile*, **--file** *textfile*\n\n\u003e Point to the\n\u003e Ar textfile\n\u003e that is going to be sent to the server.\n\n**-h**, **--help**\n\n\u003e Show help.\n\n**-n** *username*, **--name** *username*\n\n\u003e Set the username to log in as.\n\n**-q**, **--quick**\n\n\u003e Activate the quick mode, which disables the action menu.\n\u003e As a result the changes will be uploaded once a comment is entered\n\u003e by the user.\n\n**-t** *target*, **--target** *target*\n\n\u003e Provide the name of the wiki page to be updated, e.g.:\n\u003e \"`/WiFi/80211ac`\".\n\u003e A hyperlink is acceptable as well, e.g.:\n\u003e \"`https://wiki.freebsd.org/WiFi/80211ac`\".\n\n**-u**, **--update**\n\n\u003e Download the contents of the\n\u003e *target*\n\u003e wiki page and put them into the\n\n**-v**, **--version**\n\n\u003e Show version.\n\n*selector*\n\n\u003e Run\n\u003e **moinmoincli**\n\u003e as preconfigured for a given\n\u003e *selector*.\n\n\u003e Selectors are used if the\n\u003e **select\\_target**()\n\u003e function is defined in the\n\u003e configuration file (defaults are listed in the\n\u003e *FILES*\n\u003e section).\n\u003e A single\n\u003e *selector*\n\u003e is associated with a\n\u003e *target*\n\u003e and a\n\u003e *textfile*.\n\u003e As a result it is possible to use selectors to replace\n\u003e \"`moinmoincli -f ./80211ac.moin -t /WiFi/80211ac`\"\n\u003e with\n\u003e \"`moinmoincli ac`\"\n\u003e using an\n\u003e **ac**\n\u003e selector.\n\n## Action menu\n\nThe following actions could be entered at the action menu prompt one\naction at a time:\n\n**y**, **k**\n\n\u003e Confirm changes.\n\u003e The action menu will be closed and the changes uploaded to the server.\n\n**n**, **a**\n\n\u003e Abort.\n\u003e Close\n\u003e **moinmoincli**\n\u003e immediately.\n\n**t**\n\n\u003e Mark changes as trivial so that subscribers to the modified wiki\n\u003e page are not notified.\n\n**c**\n\n\u003e Change the comment.\n\n**d**\n\n\u003e Show the diff.\n\n**s**\n\n\u003e Print the summary.\n\n# FILES\n\n*~/.moinmoincli.conf*\n\n\u003e The\n\u003e **moinmoincli**\n\u003e configuration file.\n\n*/tmp/moinmoincli-workdir*\n\n\u003e The location of temporary files.\n\n# EXAMPLES\n\n## Example 1: Downloading Wiki Pages\n\nDownload the code of\n*https://wiki.freebsd.org/Community/Dogs*\nand save it under\n*./dogs.moinmoin*:\n\n\t$ moinmoincli --file ./dogs.moinmoin --target /Community/Dogs --update\n\n## Example 2: Uploading Wiki Pages\n\nWrite\n*./sandbox.txt*\nto\n*https://wiki.freebsd.org/WikiSandBox*\nas\n*CharlieRoot*:\n\n\t$ moinmoincli -n CharlieRoot -f ./sandbox.txt -t /WikiSandBox\n\n## Example 3: Suggested Workflow\n\n1.\tConfigure\n\t*~/.moinmoincli.conf*\n\tso that it is not necessary to specify the username, the text file name and the\n\ttarget website every time.\n\tUse selectors for that.\n\n2.\tGrab the latest version of the wiki page with a selector:\n\n\t\t$ moinmoincli -u selectorYouHaveConfigured\n\n3.\tEdit the text file.\n\n4.\tPush the changes over to the wiki server with:\n\n\t\t$ moinmoincli selectorYouHaveConfigured\n\n## Configuration File\n\n\t# The username to use when logging in.\n\tname='CharlieRoot'\n\t\n\t# The password for the account.\n\tpassword='secret'\n\t\n\t# The default target.\n\t# It is used unless a selector or the -t flag is used.\n\ttarget='/WikiSandBox'\n\t\n\t# The default textfile.\n\ttextfile='/tmp/wiki.moin'\n\t\n\t# The select_target function, which defines the logic behind\n\t# selectors.\n\tselect_target() {\n\t    case \"$1\" in\n\t        [wW]*)\n\t            target='/WiFi'\n\t            textfile=\"$HOME/wifi.moin\"\n\t            ;;\n\t        *)\n\t            printf '%s\\n' \"invalid selector '$1'\" \u003e\u00262\n\t            ;;\n\t    esac\n\t}\n\n# AUTHORS\n\n**moinmoincli**\nand its manual page was written by\nMateusz Piotrowski \u0026lt;[0mp@FreeBSD.org](mailto:0mp@FreeBSD.org)\u0026gt;.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0mp%2Fmoinmoincli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0mp%2Fmoinmoincli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0mp%2Fmoinmoincli/lists"}