Giter Site home page Giter Site logo

lab's Introduction

Acker has been registered, so changed to Ackerrโœจ

๐Ÿ“Š This Week I Spent My Time On

๐Ÿ’ฌ Programming Languages: 
Go                       8 hrs 25 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   53.34 % 
JSON                     3 hrs 1 min         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   19.14 % 
HTML                     1 hr 15 mins        โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   07.99 % 
SQL                      1 hr 7 mins         โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   07.10 % 
Browser                  1 hr 3 mins         โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   06.66 % 

๐Ÿ”ฅ Editors: 
GoLand                   10 hrs 31 mins      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   66.63 % 
Neovim                   5 hrs 16 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   33.37 % 

๐Ÿ’ป Operating System: 
Mac                      15 hrs 47 mins      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   100.00 % 

Last Updated on 2024/05/18 01:10:52 UTC

lab's People

Contributors

ackerr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lab's Issues

jump to repo

ๅธŒๆœ›ๆไพ›ไธ€ไธชๅ‘ฝไปคๆฅๅฟซ้€Ÿ่ฐƒๅˆฐๆŒ‡ๅฎš็š„้กน็›ฎ็›ฎๅฝ•

lab server -> cd xx.gitlab.cm/abc/be/server/

`lab clone` support group

if there are 4 repo:

core/user
core/server
core/deploy
my/user

i want to use something like lab clone core/ to clone all repo in group

How to start?

I followed the README.md and this happens:

image

When I run the go get it downloads fine (Screenshot is after)
Then, I try to run lab or lab config and it doesn't find it

ๅŠ ๅฟซlab sync้€Ÿๅบฆ

  • ่ฏ•่ฏ•ๅฏนๆฏไธ€้กตprojects๏ผŒๅผ€ไธ€ไธชgoruntine่Žทๅ–๏ผŒ็œ‹็œ‹ไผšไธไผšๅŠ ๅฟซ้€Ÿๅบฆ

Multiple servers

Is it possible to use multiple gitlab servers ? using multiple config files o multiple configurations at config.toml ?

ๆˆ‘ๅธŒๆœ› lab clone ๅฏไปฅๆŒ‰็…ง็ป“ๆž„ๆฅๅ…‹้š†้กน็›ฎ

- gitlab.com
- gitlab.lilithgames.com
  - be
    - davinci
    - einstein
  - fe
    - homepage

ๆฏ”ๅฆ‚็›ฎๅฝ•็ป“ๆž„ๆ˜ฏ่ฟ™ๆ ท็š„ๆ—ถๅ€™๏ผŒlab clone [email protected]:be/newproject ไผš่‡ชๅŠจๅœฐๆ”พๅœจ $CODE/gitlab.lilithgames.com/be/newproject ้‡Œ
๏ผˆ่ฟ™ๆ ทไนŸ่ทŸ gopath ้‡Œ็š„็ป“ๆž„ๆ˜ฏไธ€ๆ ท็š„

ๅ•ฅๆ—ถๅ€™ๅ‘ 1.0.0 ็‰ˆๆœฌ

0.x ๅผ€ๅคด็š„่ฏ๏ผŒ็ป™็”จๆˆทไธๅคŸๆญฃๅผ็š„้”™่ง‰

ๅ…ถๅฎž่ฟ™ไธช้กน็›ฎๅบ”่ฏฅๅทฒ็ปๆŒบๅฅฝ็”จ็š„ไบ†๏ผŸ

`lab sync` support wiki

GitLab ไธญ๏ผŒๆœ‰ไบ›้กน็›ฎๆ˜ฏๅผ€ๅฏ wiki ็š„ใ€‚

ๅฏนไบŽๆญค็ฑป้กน็›ฎ๏ผŒๅฏไปฅไฝฟ็”จ git clone https://gitlab.com/group/project.git ๆฅๅ…‹้š†ๆœฌไฝ“๏ผŒไนŸๅฏไปฅไฝฟ็”จ git clone https://gitlab.com/group/project.wiki.git ๆฅๅ…‹้š† wiki ้กน็›ฎ~

ๅธŒๆœ› sync ็š„ๆ—ถๅ€™ๅฏไปฅๆ”ฏๆŒไธ€ไธ‹ ๏ผˆๆˆ–่€… clone ็š„ๆ—ถๅ€™ๆ”ฏๆŒไธ‹ไนŸ่กŒ๏ผŸ

lab project create no longer works

the above command on lab v0.2.20 now returns an error. All my project scripts now fail. macOS Big Sur and on Linux. All used to work well until recently. The feature appears to have been removed.

Add Project Variables feature

Would be very useful to be added to the project, here is an example of fetching Project Variables from the API in Ruby (supporting a hardcoded max of 2 paginated pages of variables at 100 per page).

It's nice to group variables by 'environment_scope', and do an alphabetical sort for presentation.

#!/usr/bin/env ruby

require 'net/http'
require 'json'


unless defined?(ENV['GITLAB_PERSONAL_TOKEN'])
  puts 'GITLAB_PERSONAL_TOKEN required'
  exit 1
end


TOKEN=ENV['GITLAB_PERSONAL_TOKEN']
PROJECT_ID=File.read('.gitlab/project_id')
API_ENDPOINT="https://gitlab.com/api/v4/projects/#{PROJECT_ID}/variables"
PER_PAGE=100

def fetch_project_variables_page(page)

  uri = URI(API_ENDPOINT + "?per_page=#{PER_PAGE}&page=#{page}")
  Net::HTTP.start(uri.host, 443,
    :use_ssl => uri.scheme == 'https') do |http|
    request = Net::HTTP::Get.new uri
    request['PRIVATE-TOKEN'] = TOKEN

    response = http.request(request)

    project_variables = JSON.parse(response.body)

    project_variables

  end

end



def print_vars

  project_variables = Array.new

  page_1 = fetch_project_variables_page(1)
  page_2 = fetch_project_variables_page(2)

  project_variables = project_variables + page_1

  if page_2.count > 99
     puts 'real pagination of Gitlab Project Variables should be implemented. exiting'
     exit 1
  else
      project_variables = project_variables + page_2
  end



  group_by_scope = project_variables.group_by {|x| x['environment_scope']}

  group_by_scope.each_pair do |scope,vars|

   puts "-----------------------------------------------------------------"
   puts scope
   puts "-----------------------------------------------------------------"

   sorted_vars = vars.sort_by { |v| v['key'] }
   sorted_vars.each do |var|
     puts "#{var['key']}=#{var['value']}"
   end

   puts ''

  end

end


print_vars

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.