d75fbb0a21 
					 
					
						
						
							
							src/bin/dump-catalog-shell-cli.rs: generate catalog shell docs  
						
						 
						
						
						
						
					 
					
						2019-12-06 09:54:13 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						55c3cb69cd 
					 
					
						
						
							
							rename catalog_shell_api() into catalog_shell_cli()  
						
						 
						
						
						
						
					 
					
						2019-12-06 09:42:05 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ecbaa38fa4 
					 
					
						
						
							
							src/backup/catalog_shell.rs: factor out catalog_shell_api()  
						
						 
						
						... 
						
						
						
						In order to extract documentation ... 
						
						
					 
					
						2019-12-06 09:35:47 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						cca67dc0c3 
					 
					
						
						
							
							src/backup/readline.rs: removed in favor of new readline impl  
						
						 
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-06 09:03:04 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6934c6fe77 
					 
					
						
						
							
							src/backup/catalog_shell.rs: adapt to use API Schema definition and rustyline  
						
						 
						
						... 
						
						
						
						This major refactoring of the catalog based shell utilizes the new API macro and
the API Schema as well as rustyline instead of the old GNU readline C API.
The code now has these 3 main components:
 * The `Shell` which handles the readline loop via rustyline.
 * The shell functions defined via the API macro.
 * The `Context` which holds catalog and decoder instances.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-06 09:02:44 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9b78352188 
					 
					
						
						
							
							src/backup/prune.rs: define new struct PruneOptions  
						
						 
						
						
						
						
					 
					
						2019-12-06 08:56:27 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						92acbd69f7 
					 
					
						
						
							
							src/backup/backup_info.rs: remove old prune code  
						
						 
						
						
						
						
					 
					
						2019-12-06 08:29:27 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						408434360b 
					 
					
						
						
							
							src/backup/prune.rs: add PruneMark::KeepPartial  
						
						 
						
						... 
						
						
						
						Use separate mark for partial backup - dont mess them up with regular ones. 
						
						
					 
					
						2019-12-06 08:15:32 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a8c8366cfa 
					 
					
						
						
							
							src/backup/prune.rs: factor out code into remove_incomplete_snapshots()  
						
						 
						
						
						
						
					 
					
						2019-12-06 08:12:08 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						dc18849156 
					 
					
						
						
							
							src/backup/prune.rs: moved prune related code into extra file  
						
						 
						
						
						
						
					 
					
						2019-12-06 08:06:21 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6f47dd8a0f 
					 
					
						
						
							
							src/backup/backup_info.rs - prune: improve algorythm  
						
						 
						
						
						
						
					 
					
						2019-12-05 18:41:28 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8f0b4c1f90 
					 
					
						
						
							
							src/api2/admin/datastore.rs - prune: log info about all snapshots  
						
						 
						
						
						
						
					 
					
						2019-12-05 15:35:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9ce42759ec 
					 
					
						
						
							
							src/backup/backup_info.rs - compute_prune_list: remove unfinished backups  
						
						 
						
						
						
						
					 
					
						2019-12-05 11:18:10 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2c034f8d0a 
					 
					
						
						
							
							src/backup/backup_info.rs: improve prune algorithm  
						
						 
						
						
						
						
					 
					
						2019-12-05 08:55:19 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						aeeac29bb1 
					 
					
						
						
							
							src/backup/backup_info.rs: new compute_prune_list helper  
						
						 
						
						... 
						
						
						
						So that we can write regression tests for this. 
						
						
					 
					
						2019-12-04 15:49:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3d229a4a01 
					 
					
						
						
							
							Revert "test another api macro use"  
						
						 
						
						... 
						
						
						
						This reverts commit a9aa52e6a8 .
Because we do not want to use macros for the backup protocol for now.
And because it crashes backup tasks for some unknown reason. 
						
						
					 
					
						2019-12-04 14:18:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4f1e40a29e 
					 
					
						
						
							
							src/api2/admin/datastore.rs - read_backup_index: add manifest with size  
						
						 
						
						... 
						
						
						
						So that the client can display the size of the index file. 
						
						
					 
					
						2019-12-04 10:03:52 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a9aa52e6a8 
					 
					
						
						
							
							test another api macro use  
						
						 
						
						... 
						
						
						
						The api macro now supports hyphens in parameter names and
referencing externally defined `Schema`s, so here's an
example.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-12-03 13:41:40 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						de0aa53174 
					 
					
						
						
							
							pxar: decoder: fix incorrect read for hardlinks.  
						
						 
						
						... 
						
						
						
						Decoders read must check if the file is a hardlink and read data from the
corresponding offset if so.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-03 12:08:23 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b7e18004a2 
					 
					
						
						
							
							pxar: decoder: return original name in attributes()  
						
						 
						
						... 
						
						
						
						The returned filename should be the one of the file given at the offset, not of
the one the hardlink points to.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-12-03 12:08:07 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7eea56ca00 
					 
					
						
						
							
							use cli from proxmox::api  
						
						 
						
						
						
						
					 
					
						2019-12-02 11:56:29 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						524b22df35 
					 
					
						
						
							
							src/cli/completion.rs - get_help_completion: fix for "help -" expansion  
						
						 
						
						
						
						
					 
					
						2019-12-02 11:11:31 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e8e9bae4d1 
					 
					
						
						
							
							src/bin/completion.rs: add echo command  
						
						 
						
						
						
						
					 
					
						2019-12-02 11:04:40 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						19d7a59236 
					 
					
						
						
							
							src/bin/completion.rs: use api macros  
						
						 
						
						
						
						
					 
					
						2019-12-02 10:57:19 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f9a51322cb 
					 
					
						
						
							
							src/cli/command.rs: use insert_help()  
						
						 
						
						
						
						
					 
					
						2019-12-02 08:52:08 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e3e72546dd 
					 
					
						
						
							
							src/cli/command.rs: cleanup, remove unused top_def parameter  
						
						 
						
						
						
						
					 
					
						2019-12-02 08:47:03 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2348e77edf 
					 
					
						
						
							
							src/cli/completion.rs - get_simple_completion: remove all_arg_param parameters  
						
						 
						
						... 
						
						
						
						Seems useless. 
						
						
					 
					
						2019-12-02 08:31:03 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						28c855c0a2 
					 
					
						
						
							
							src/cli: improve docs  
						
						 
						
						
						
						
					 
					
						2019-12-01 16:41:49 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						3bf920527c 
					 
					
						
						
							
							src/cli/command.rs: make set_help_context private - no need to expose  
						
						 
						
						
						
						
					 
					
						2019-12-01 12:54:41 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bca6d9120a 
					 
					
						
						
							
							src/cli/command.rs: improve help command description  
						
						 
						
						
						
						
					 
					
						2019-12-01 12:40:37 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2f6ecc1ccd 
					 
					
						
						
							
							src/cli/completion.rs: moved all completion related code here  
						
						 
						
						
						
						
					 
					
						2019-12-01 11:44:31 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a810e05288 
					 
					
						
						
							
							src/cli/readline.rs: moved readline related code here  
						
						 
						
						
						
						
					 
					
						2019-12-01 11:31:35 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5d64a0d083 
					 
					
						
						
							
							src/cli/shellword.rs: moved shellword related code into this file  
						
						 
						
						
						
						
					 
					
						2019-12-01 11:17:57 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						fb8a00bc00 
					 
					
						
						
							
							src/cli/command.rs - get_nested_completion: allow fuzzy match  
						
						 
						
						
						
						
					 
					
						2019-12-01 11:06:54 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9498fcf9c5 
					 
					
						
						
							
							src/cli/command.rs - get_nested_completion: return nothing if first argument does not match  
						
						 
						
						
						
						
					 
					
						2019-12-01 10:24:07 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						309e449db2 
					 
					
						
						
							
							src/cli/command.rs: improve get_help_completion  
						
						 
						
						
						
						
					 
					
						2019-12-01 10:18:47 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b8a82922c7 
					 
					
						
						
							
							src/cli/command.rs: handle multilevel sub commands in help  
						
						 
						
						
						
						
					 
					
						2019-12-01 09:42:51 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b7bf71dfa1 
					 
					
						
						
							
							src/cli/command.rs: fix help completions  
						
						 
						
						
						
						
					 
					
						2019-11-30 15:43:44 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7afc1af7ab 
					 
					
						
						
							
							src/bin/completion.rs: add history support  
						
						 
						
						
						
						
					 
					
						2019-11-30 15:08:37 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						4b8573da65 
					 
					
						
						
							
							src/cli/command.rs - handle_command: return Result instead of exit()  
						
						 
						
						
						
						
					 
					
						2019-11-30 15:08:00 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2b691daf6f 
					 
					
						
						
							
							src/cli.rs: add insert_help() method  
						
						 
						
						
						
						
					 
					
						2019-11-30 14:56:31 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1201abcffa 
					 
					
						
						
							
							src/cli/command.rs: implement help  
						
						 
						
						
						
						
					 
					
						2019-11-30 13:02:00 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8423c1fe64 
					 
					
						
						
							
							cli/completion: use match statements and .contains()  
						
						 
						
						... 
						
						
						
						`match` is a bit more readable than the if-else chains,
also replace
    space_chars.iter().any(|s| c == *s)
with
    space_chars.contains(&c)
which is also more readable.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-29 13:37:34 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e399398444 
					 
					
						
						
							
							remove shellwords crate  
						
						 
						
						
						
						
					 
					
						2019-11-29 12:49:44 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ca60ac13d9 
					 
					
						
						
							
							use rustyline to replace readline  
						
						 
						
						
						
						
					 
					
						2019-11-29 12:49:44 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						41874331ed 
					 
					
						
						
							
							whitespace fixup  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-29 09:52:15 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2905f2b5e6 
					 
					
						
						
							
							update api macro example usage  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-29 09:51:27 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8b130e71da 
					 
					
						
						
							
							src/cli/command.rs: cleanup, make handlers more generic  
						
						 
						
						
						
						
					 
					
						2019-11-27 14:44:21 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7b6c41078b 
					 
					
						
						
							
							update api macro invocation to new style  
						
						 
						
						... 
						
						
						
						Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com > 
						
						
					 
					
						2019-11-27 14:19:46 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						314bb35868 
					 
					
						
						
							
							catalog_shell: fix several clippy warnings  
						
						 
						
						... 
						
						
						
						Signed-off-by: Christian Ebner <c.ebner@proxmox.com > 
						
						
					 
					
						2019-11-27 10:13:50 +01:00