add full-unlisted patches
This commit is contained in:
		
							parent
							
								
									cc3cd394a5
								
							
						
					
					
						commit
						d141fae279
					
				|  | @ -62,6 +62,8 @@ def post_visibility(args, is_head): | ||||||
|         return "direct" |         return "direct" | ||||||
|     if args.private: |     if args.private: | ||||||
|         return "private" |         return "private" | ||||||
|  |     if args.unlisted: | ||||||
|  |         return "unlisted" | ||||||
|     if args.public: |     if args.public: | ||||||
|         return "public" if is_head else "unlisted" |         return "public" if is_head else "unlisted" | ||||||
|     if args.all_public: |     if args.all_public: | ||||||
|  | @ -428,6 +430,11 @@ def main(): | ||||||
|         ), |         ), | ||||||
|     ) |     ) | ||||||
|     visibility = post.add_mutually_exclusive_group() |     visibility = post.add_mutually_exclusive_group() | ||||||
|  |     visibility.add_argument( | ||||||
|  |         "--all-public", | ||||||
|  |         action="store_true", | ||||||
|  |         help="post head status and all patches publicly", | ||||||
|  |     ) | ||||||
|     visibility.add_argument( |     visibility.add_argument( | ||||||
|         "--public", |         "--public", | ||||||
|         action="store_true", |         action="store_true", | ||||||
|  | @ -436,15 +443,17 @@ def main(): | ||||||
|         ), |         ), | ||||||
|     ) |     ) | ||||||
|     visibility.add_argument( |     visibility.add_argument( | ||||||
|         "--all-public", |         "--unlisted", | ||||||
|         action="store_true", |         action="store_true", | ||||||
|         help="post head status and all patches publicly", |         help=( | ||||||
|  |             "post all statuses as unlisted" | ||||||
|  |         ), | ||||||
|     ) |     ) | ||||||
|     visibility.add_argument( |     visibility.add_argument( | ||||||
|         "--private", |         "--private", | ||||||
|         action="store_true", |         action="store_true", | ||||||
|         help=( |         help=( | ||||||
|             "post statuses as private (visible by followers and recipient only)" |             "post statuses as private (visible by followers and recipients only)" | ||||||
|         ), |         ), | ||||||
|     ) |     ) | ||||||
|     visibility.add_argument( |     visibility.add_argument( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue