You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONVENTIONS.md
+83Lines changed: 83 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,3 +73,86 @@ This document outlines the coding conventions used in our project, particularly
73
73
- Use consistent naming conventions across all functions.
74
74
75
75
These conventions are derived from the observed patterns in the project files. They should be followed when contributing new functions or modifying existing ones to maintain consistency across the project.
76
+
77
+
## Examples
78
+
79
+
### Example 1: Listing a Resource (VPCs)
80
+
81
+
The `vpcs` function is an example of listing a resource type. It demonstrates how to query and format the output for VPCs:
- Using `skim-stdin` to handle both piped input and arguments
112
+
- Applying filters with `__bma_read_filters`
113
+
- Using AWS CLI with a complex query to format the output
114
+
- Using `columnise` for consistent output formatting
115
+
116
+
### Example 2: Listing Associated Resources (VPC Subnets)
117
+
118
+
The `vpc-subnets` function is an example of listing resources associated with another resource. It demonstrates how to query and format the output for subnets associated with specific VPCs:
0 commit comments