mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Adding script/list-grammars to script/add-grammar
This commit is contained in:
		| @@ -8,7 +8,7 @@ ROOT = File.expand_path("../../", __FILE__) | ||||
| # Break a repository URL into its separate components | ||||
| def parse_url(input) | ||||
|   hosts = "github\.com|bitbucket\.org|gitlab\.com" | ||||
|    | ||||
|  | ||||
|   # HTTPS/HTTP link pointing to recognised hosts | ||||
|   if input =~ /^(?:https?:\/\/)?(?:[^.@]+@)?(?:www\.)?(#{hosts})\/([^\/]+)\/([^\/]+)/i | ||||
|     { host: $1.downcase(), user: $2, repo: $3.sub(/\.git$/, "") } | ||||
| @@ -91,3 +91,6 @@ exit 1 if $?.exitstatus > 0 | ||||
|  | ||||
| log "Confirming license" | ||||
| `script/licensed --module "#{repo_new}"` | ||||
|  | ||||
| log "Updating grammar documentation in vendor/REAEDME.md" | ||||
| `script list-grammars` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user