FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aws-cli/scripts/make-topic-index at develop · github-38438-org/aws-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github-38438-org
/
aws-cli
Public
forked from
aws/aws-cli
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aws-cli
/
scripts
/
make-topic-index
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
23 lines (17 loc) · 669 Bytes
Breadcrumbs
aws-cli
/
scripts
/
make-topic-index
Copy path
File metadata and controls
executable file
·
23 lines (17 loc) · 669 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
"""This is a script to generate a JSON index for the CLI Topic Guide
Whenever a new topic is added to the awscli/topics directory or a tag
has been modified in a current topic in that directory, this script
**must** be run. The script will scan through all of the topics in the
directory and generate a JSON index that is used by the CLI to link related
topics and commands.
"""
import
awscli
from
awscli
.
topictags
import
TopicTagDB
def
main
():
topic_tag_db
=
TopicTagDB
()
src_files
=
topic_tag_db
.
get_all_topic_src_files
()
topic_tag_db
.
scan
(
src_files
)
topic_tag_db
.
save_to_json_index
()
if
__name__
==
'__main__'
:
main
()
Back
|
FazBrowse Home
|
New Git URL