Coder Social home page Coder Social logo

Comments (3)

smacker avatar smacker commented on June 6, 2024

can't reproduce with using spaces as a separator:

$ go run cmd/sourced/main.go orgs init -t <token> go-chi golang-migrate
docker-compose working directory set to go-chi,golang-migrate
Creating network "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_default" with the default driver
Creating volume "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitbase_repositories" with default driver
Creating volume "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitbase_indexes" with default driver
Creating volume "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_metadata" with default driver
Creating volume "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_postgres" with default driver
Creating volume "srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_redis" with default driver
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_redis_1      ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_metadatadb_1 ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_postgres_1   ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh_1     ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitbase_1      ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh-web_1   ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_ghsync_1       ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitcollector_1 ... done
Creating srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_sourced-ui_1   ... done
smacker in ~/Work/sourced-ce on master [?]
$ go run cmd/sourced/main.go orgs init -t <token> golang-migrate go-chi
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_sourced-ui_1 ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitbase_1    ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh-web_1 ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_postgres_1   ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh_1     ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_metadatadb_1 ... done
Stopping srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_redis_1      ... done
docker-compose working directory set to go-chi,golang-migrate
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh_1     ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_metadatadb_1 ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_redis_1      ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_postgres_1   ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitbase_1      ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_bblfsh-web_1   ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_ghsync_1       ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_gitcollector_1 ... done
Starting srcd-z28ty2hplgdvbgfuzy1tawdyyxrl_sourced-ui_1   ... done
$ go run cmd/sourced/main.go workdirs
* go-chi,golang-migrate

most probably carlosms-test-org,bblfsh is treated as 1 organization but we don't have validation.

We have 2 options:

  • update code to change space to , as a separator (or support both)
  • update docs

from sourced-ce.

carlosms avatar carlosms commented on June 6, 2024

that's interesting.

We have 2 options:

  • update code to change space to , as a separator (or support both)
  • update docs

Both are fine. I don't have a strong preference, but I have a feeling the comma-separated list can be more intuitive. I mean if we could and if it's not too complex, we could also accept a b/a,b/a, b...

from sourced-ce.

smacker avatar smacker commented on June 6, 2024

Ok. I'll implement support for , in addition to current .

comma-separated list can be more intuitive

I feel the opposite, positional arguments are usually passed using space as a delimiter in all the cli tools I know.

from sourced-ce.

Related Issues (20)

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.