host groups/tree #6
			
				
			
		
		
		
	
	
		Labels
		
	
	
	
	No Label
	
		
			
	
	
	bug
		
			duplicate
		
			enhancement
		
			help wanted
		
			invalid
		
			question
		
			wontfix
		
		
	
		No Milestone
		
			
		
	
	
	
	
	
	
		No Assignees
		
			
		
	
	
	
		1 Participants
		
	
	
		
		
			Notifications
			
				
			
		
	
	
		
		
	
	
	Due Date
	No due date set.
			
				Dependencies
				
				
		
	
	
	No dependencies set.
			Reference: zlax/sshch#6
			
		
	
		Loading…
	
		Reference in New Issue
	
	
	No description provided.
		
		Delete Branch "%!s(<nil>)"
	
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @dyadMisha
can you implement host groups or tree, not just plain list?
Author: @zlaxy
Yes, it's possible.
Describe in more detail which groups/tree you would like to see. How to do it in the curses-interface i understand (like directory in file tree view). But how to implement it on the command line?
You mean the possibility of creating alias for a group to send one command to many hosts at once by specifying only their group alias?
Author: @dyadMisha
Thanks for fast reply. I am talking only about how to represent hosts in interface, something like this:
[ work 1 ] (3 hosts) (press enter to collapse)
------ [ dev ] (2 hosts) (press enter to collapse)
--------------- [ ] 1 devhost1.work1.net (ssh root@10.10.10.1)
--------------- [ ] 2 devhost2.work1.net (ssh root@10.10.10.2)
------ [ prod ] (1 host) (press enter to collapse)
--------------- [ ] 1 prodhost1.work1.net (ssh root@10.10.11.1)
[ work 2 ] (7 hosts) (press enter to expand)
[ home ] (5 hosts) (press enter to expand)
Author: @zlaxy
Hello, i implemented base groups functionality (one level groups):
e430142fdcMultilevel tree implementation needs more time (with Tree object) or using external libraries (like anytree).
In a short time, without changing a lot of code, i made only one level groups. You can check it and test it. If you find any erroros/mistakes, i will fix it soon as possible. I will not be able to do multilevel tree until a few months...but, please, look on current implementation - could this be enough?
By changing
expand_defaultvariable (string 27) you could set default view of groups:Falseis collapsed by default,Trueexpanded by default.Author: @dyadMisha
Author: @zlaxy
37a20a0c489c361bbe00Please, don't use alias or group names with spaces, use '_' symbol if you want to use multi-word name.
Added strip names function during adding new aliases and groups.
When i remove group, aliases still exists.
Author: @dyadMisha
then restart sshch and try to expand grup test it fails with:
Author: @zlaxy
450b30b196If you do not find any other related errors - please close this issue.