Add extra freeipa commands to highlight

This also adds a manual call to Prism.highlightAll(), because there is a race
condition between when the regexes are parsed and when the DOM is loaded.
parent 3599178b
Pipeline #56205618 passed with stages
in 1 minute and 28 seconds
......@@ -4,6 +4,11 @@ Prism.languages.shell = Prism.languages.extend('shell', {
{
pattern: /(^|[\s;|&])(ipa[ -]?)(?:automember-add|automember-add-condition|automember-default-group-remove|automember-default-group-set|automember-default-group-show|automember-del|automember-find|automember-find-orphans|automember-mod|automember-rebuild|automember-remove-condition|automember-show|automountkey-add|automountkey-del|automountkey-find|automountkey-mod|automountkey-show|automountlocation-add|automountlocation-del|automountlocation-find|automountlocation-import|automountlocation-show|automountlocation-tofiles|automountmap-add|automountmap-add-indirect|automountmap-del|automountmap-find|automountmap-mod|automountmap-show|ca-add|ca-del|ca-disable|ca-enable|ca-find|ca-mod|ca-show|caacl-add|caacl-add-ca|caacl-add-host|caacl-add-profile|caacl-add-service|caacl-add-user|caacl-del|caacl-disable|caacl-enable|caacl-find|caacl-mod|caacl-remove-ca|caacl-remove-host|caacl-remove-profile|caacl-remove-service|caacl-remove-user|caacl-show|cert-find|cert-remove-hold|cert-request|cert-revoke|cert-show|cert-status|certmap-match|certmapconfig-mod|certmapconfig-show|certmaprule-add|certmaprule-del|certmaprule-disable|certmaprule-enable|certmaprule-find|certmaprule-mod|certmaprule-show|certprofile-del|certprofile-find|certprofile-import|certprofile-mod|certprofile-show|class-find|class-show|command-find|command-show|config-mod|config-show|console|delegation-add|delegation-del|delegation-find|delegation-mod|delegation-show|dns-update-system-records|dnsconfig-mod|dnsconfig-show|dnsforwardzone-add|dnsforwardzone-add-permission|dnsforwardzone-del|dnsforwardzone-disable|dnsforwardzone-enable|dnsforwardzone-find|dnsforwardzone-mod|dnsforwardzone-remove-permission|dnsforwardzone-show|dnsrecord-add|dnsrecord-del|dnsrecord-find|dnsrecord-mod|dnsrecord-show|dnsserver-find|dnsserver-mod|dnsserver-show|dnszone-add|dnszone-add-permission|dnszone-del|dnszone-disable|dnszone-enable|dnszone-find|dnszone-mod|dnszone-remove-permission|dnszone-show|domainlevel-get|domainlevel-set|env|group-add|group-add-member|group-del|group-detach|group-find|group-mod|group-remove-member|group-show|hbacrule-add|hbacrule-add-host|hbacrule-add-service|hbacrule-add-user|hbacrule-del|hbacrule-disable|hbacrule-enable|hbacrule-find|hbacrule-mod|hbacrule-remove-host|hbacrule-remove-service|hbacrule-remove-user|hbacrule-show|hbacsvc-add|hbacsvc-del|hbacsvc-find|hbacsvc-mod|hbacsvc-show|hbacsvcgroup-add|hbacsvcgroup-add-member|hbacsvcgroup-del|hbacsvcgroup-find|hbacsvcgroup-mod|hbacsvcgroup-remove-member|hbacsvcgroup-show|hbactest|help|host-add|host-add-cert|host-add-managedby|host-add-principal|host-allow-create-keytab|host-allow-retrieve-keytab|host-del|host-disable|host-disallow-create-keytab|host-disallow-retrieve-keytab|host-find|host-mod|host-remove-cert|host-remove-managedby|host-remove-principal|host-show|hostgroup-add|hostgroup-add-member|hostgroup-del|hostgroup-find|hostgroup-mod|hostgroup-remove-member|hostgroup-show|idoverridegroup-add|idoverridegroup-del|idoverridegroup-find|idoverridegroup-mod|idoverridegroup-show|idoverrideuser-add|idoverrideuser-add-cert|idoverrideuser-del|idoverrideuser-find|idoverrideuser-mod|idoverrideuser-remove-cert|idoverrideuser-show|idrange-add|idrange-del|idrange-find|idrange-mod|idrange-show|idview-add|idview-apply|idview-del|idview-find|idview-mod|idview-show|idview-unapply|krbtpolicy-mod|krbtpolicy-reset|krbtpolicy-show|location-add|location-del|location-find|location-mod|location-show|migrate-ds|netgroup-add|netgroup-add-member|netgroup-del|netgroup-find|netgroup-mod|netgroup-remove-member|netgroup-show|otpconfig-mod|otpconfig-show|otptoken-add|otptoken-add-managedby|otptoken-add-yubikey|otptoken-del|otptoken-find|otptoken-mod|otptoken-remove-managedby|otptoken-show|otptoken-sync|output-find|output-show|param-find|param-show|passwd|permission-add|permission-del|permission-find|permission-mod|permission-show|ping|pkinit-status|plugins|privilege-add|privilege-add-permission|privilege-del|privilege-find|privilege-mod|privilege-remove-permission|privilege-show|pwpolicy-add|pwpolicy-del|pwpolicy-find|pwpolicy-mod|pwpolicy-show|radiusproxy-add|radiusproxy-del|radiusproxy-find|radiusproxy-mod|radiusproxy-show|realmdomains-mod|realmdomains-show|role-add|role-add-member|role-add-privilege|role-del|role-find|role-mod|role-remove-member|role-remove-privilege|role-show|selfservice-add|selfservice-del|selfservice-find|selfservice-mod|selfservice-show|selinuxusermap-add|selinuxusermap-add-host|selinuxusermap-add-user|selinuxusermap-del|selinuxusermap-disable|selinuxusermap-enable|selinuxusermap-find|selinuxusermap-mod|selinuxusermap-remove-host|selinuxusermap-remove-user|selinuxusermap-show|server-del|server-find|server-mod|server-role-find|server-role-show|server-show|service-add|service-add-cert|service-add-host|service-add-principal|service-allow-create-keytab|service-allow-retrieve-keytab|service-del|service-disable|service-disallow-create-keytab|service-disallow-retrieve-keytab|service-find|service-mod|service-remove-cert|service-remove-host|service-remove-principal|service-show|servicedelegationrule-add|servicedelegationrule-add-member|servicedelegationrule-add-target|servicedelegationrule-del|servicedelegationrule-find|servicedelegationrule-remove-member|servicedelegationrule-remove-target|servicedelegationrule-show|servicedelegationtarget-add|servicedelegationtarget-add-member|servicedelegationtarget-del|servicedelegationtarget-find|servicedelegationtarget-remove-member|servicedelegationtarget-show|show-mappings|stageuser-activate|stageuser-add|stageuser-add-cert|stageuser-add-certmapdata|stageuser-add-manager|stageuser-add-principal|stageuser-del|stageuser-find|stageuser-mod|stageuser-remove-cert|stageuser-remove-certmapdata|stageuser-remove-manager|stageuser-remove-principal|stageuser-show|sudocmd-add|sudocmd-del|sudocmd-find|sudocmd-mod|sudocmd-show|sudocmdgroup-add|sudocmdgroup-add-member|sudocmdgroup-del|sudocmdgroup-find|sudocmdgroup-mod|sudocmdgroup-remove-member|sudocmdgroup-show|sudorule-add|sudorule-add-allow-command|sudorule-add-deny-command|sudorule-add-host|sudorule-add-option|sudorule-add-runasgroup|sudorule-add-runasuser|sudorule-add-user|sudorule-del|sudorule-disable|sudorule-enable|sudorule-find|sudorule-mod|sudorule-remove-allow-command|sudorule-remove-deny-command|sudorule-remove-host|sudorule-remove-option|sudorule-remove-runasgroup|sudorule-remove-runasuser|sudorule-remove-user|sudorule-show|topic-find|topic-show|topologysegment-add|topologysegment-del|topologysegment-find|topologysegment-mod|topologysegment-reinitialize|topologysegment-show|topologysuffix-find|topologysuffix-show|topologysuffix-verify|trust-add|trust-del|trust-fetch-domains|trust-find|trust-mod|trust-show|trustconfig-mod|trustconfig-show|trustdomain-del|trustdomain-disable|trustdomain-enable|trustdomain-find|user-add|user-add-cert|user-add-certmapdata|user-add-manager|user-add-principal|user-del|user-disable|user-enable|user-find|user-mod|user-remove-cert|user-remove-certmapdata|user-remove-manager|user-remove-principal|user-show|user-stage|user-status|user-undel|user-unlock|vault-add|vault-add-member|vault-add-owner|vault-archive|vault-del|vault-find|vault-mod|vault-remove-member|vault-remove-owner|vault-retrieve|vault-show|vaultconfig-show|vaultcontainer-add-owner|vaultcontainer-del|vaultcontainer-remove-owner|vaultcontainer-show)(?=$|[\s;|&])/,
lookbehind: true
},
{
pattern: /(^|[\s;|&])(?:ipa-adtrust-install|ipa-advise|ipa-backup|ipa-ca-install|ipa-cacert-manage|ipa-certupdate|ipa-client-automount|ipa-client-install|ipa-compat-manage|ipa-csreplica-manage|ipa-dns-install|ipa-getkeytab|ipa-join|ipa-kra-install|ipa-ldap-updater|ipa-managed-entries|ipa-nis-manage|ipa-otptoken-import|ipa-pkinit-manage|ipa-replica-conncheck|ipa-replica-install|ipa-replica-manage|ipa-replica-prepare|ipa-restore|ipa-rmkeytab|ipa-server-certinstall|ipa-server-install|ipa-server-upgrade|ipa-winsync-migrate)(?=$|[\s;|&])/,
lookbehind: true
}
]
});
Prism.highlightAll();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment