@@ -52,13 +52,14 @@ This API is only available to authenticated members of the team's organization.
|
||||
{% if operation.subcategory == 'members' %}{% include rest_operation %}{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% ifversion ghec %}
|
||||
{% ifversion ghec or ghae %}
|
||||
## External groups
|
||||
|
||||
The external groups API allows you to view the external identity provider groups that are available to your organization and manage the connection between external groups and teams in your organization.
|
||||
|
||||
To use this API, the authenticated user must be a team maintainer or an owner of the organization associated with the team.
|
||||
|
||||
{% ifversion ghec %}
|
||||
{% note %}
|
||||
|
||||
**Notes:**
|
||||
@@ -67,6 +68,7 @@ To use this API, the authenticated user must be a team maintainer or an owner of
|
||||
- If your organization uses team synchronization, you can use the Team Synchronization API. For more information, see "[Team synchronization API](#team-synchronization)."
|
||||
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
|
||||
{% for operation in currentRestOperations %}
|
||||
{% if operation.subcategory == 'external-groups' %}{% include rest_operation %}{% endif %}
|
||||
|
||||
32
script/i18n/liquid-diff.js
Executable file
32
script/i18n/liquid-diff.js
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import program from 'commander'
|
||||
import { compareLiquidTags } from '../../lib/liquid-tags/tokens.js'
|
||||
import languages from '../../lib/languages.js'
|
||||
|
||||
program
|
||||
.argument('<files...>', 'The file name(s) without the language dir. \nI.E. content/foo.md')
|
||||
.description('Shows the differences of liquid tags between two files')
|
||||
.requiredOption('-l, --language <language>', `Choose one of these languages to compare: ${Object.keys(languages).filter(l => l !== 'en')}`)
|
||||
.parse(process.argv)
|
||||
|
||||
function reportFileDifference(diff) {
|
||||
console.log(`File: ${diff.file}`)
|
||||
console.log(`Translation: ${diff.translation}`)
|
||||
console.log(`Differences:`)
|
||||
console.log(diff.diff.output)
|
||||
}
|
||||
|
||||
function main() {
|
||||
const files = program.args
|
||||
const options = program.opts()
|
||||
|
||||
files.forEach((file) => {
|
||||
const language = languages[options.language]
|
||||
if (!language) throw new Error(`${options.language} is not a recognized language`)
|
||||
const diff = compareLiquidTags(file, language)
|
||||
reportFileDifference(diff)
|
||||
})
|
||||
}
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user