improved cli interface
This commit is contained in:
		
							parent
							
								
									6e46f52b52
								
							
						
					
					
						commit
						bc862a41ad
					
				@ -8,11 +8,11 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type args struct {
 | 
					type args struct {
 | 
				
			||||||
	BaseURL     string `arg:"--base-url,required,env:BASE_URL" placeholder:"https://demo.immich.app"`
 | 
						BaseURL     string `arg:"--base-url,required" placeholder:"BASE_URL" help:"Base URL of the Immich instance e.g.: https://demo.immich.app"`
 | 
				
			||||||
	APIKey      string `arg:"--api-key,required,env:API_KEY" placeholder:"API_KEY"`
 | 
						APIKey      string `arg:"--api-key,required" placeholder:"API_KEY" help:"API Key. Needs asset.upload, asset.update, albumAsset.create"`
 | 
				
			||||||
	UserdataDir string `arg:"--steam-userdata-dir,env:USERDATA_DIR" default:"$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata"`
 | 
						UserdataDir string `arg:"--steam-userdata-dir" placeholder:"USERDATA_DIR" help:"Steam userdata directory. If not set, search automaticly."`
 | 
				
			||||||
	DeviceID    string `arg:"--device-id,env:DEVICE_ID" default:"steam-immich"`
 | 
						DeviceID    string `arg:"--device-id" default:"steam-immich" help:"Device ID of the uploads"`
 | 
				
			||||||
	Album       string `arg:"--album,env:ALBUM"`
 | 
						Album       string `arg:"--album" help:"UUID of a album to upload to"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user