mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08:00 
			
		
		
		
	Readme updates
This commit is contained in:
		
							parent
							
								
									2780903b60
								
							
						
					
					
						commit
						1605938c2c
					
				
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							| @ -83,7 +83,7 @@ yaml sample.yaml b.e[1].name | |||||||
| ``` | ``` | ||||||
| will output 'sam' | will output 'sam' | ||||||
| 
 | 
 | ||||||
| #### Array Splat | ### Array Splat | ||||||
| e.g.: given a sample file of | e.g.: given a sample file of | ||||||
| ```yaml | ```yaml | ||||||
| b: | b: | ||||||
| @ -103,9 +103,9 @@ will output: | |||||||
| - sam | - sam | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ## Update examples | ||||||
| 
 | 
 | ||||||
| 
 | ### Update to stdout | ||||||
| ### Updating yaml |  | ||||||
| Given a sample.yaml file of: | Given a sample.yaml file of: | ||||||
| ```yaml | ```yaml | ||||||
| b: | b: | ||||||
| @ -120,3 +120,16 @@ will output: | |||||||
| b: | b: | ||||||
|   c: cat |   c: cat | ||||||
| ``` | ``` | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### Updating yaml in-place | ||||||
|  | Given a sample.yaml file of: | ||||||
|  | ```yaml | ||||||
|  | b: | ||||||
|  |   c: 2 | ||||||
|  | ``` | ||||||
|  | then | ||||||
|  | ```bash | ||||||
|  | yaml wi sample.yaml b.c cat | ||||||
|  | ``` | ||||||
|  | will update the sample.yaml file so that the value of 'c' is cat. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user