GithubHelp home page GithubHelp logo

barcelona-cli's Introduction

⚔️ Degica Quest ⚔️

Welcome brave Ruby warrior. An epic adventure awaits you.

🛠 How to Play

Install the rubygem

gem install degica

And then execute:

$ degica

💪 Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/degica/degica. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

©️ License

MIT

barcelona-cli's People

Contributors

davidsiaw avatar dependabot[bot] avatar essa avatar iorin0225 avatar jdgc avatar k2nr avatar kenta-s avatar matafc avatar metallion avatar moemoe89 avatar olingern avatar reneos avatar resonious avatar rramsden avatar yuuki77 avatar zuccamia avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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

Forkers

moemoe89

barcelona-cli's Issues

bcn-run-specific settings

We should have specific settings in barcelona.yml when we run bcn run so we can set up things like default to read replica for when a user runs bcn run.

A similar thing has been done here: https://github.com/degica/basecamp2/pull/1797

However this requires the user to run bin/rails_console. We need a default encoded into barcelona.yml that makes sense that would run for all commands.

This way we can go

environments:
  production:
    run:
      env:
        DATABASE_URL: https://read_replica.com/myservice

run.go needs fixing

There are way too many if statements in run.go right now and its really hard to understand it. We need a bit of refactoring.

Build steps

I was unable to get this building locally. I installed glide and installed the dependencies, but when running go build I get compile errors:

image
image

Weird error message when bcn cannot be reached

Whenever you can resolve the barcelona server address but cannot connect to the server, you get a

invalid character '<' looking for beginning of value

trying to run bcn run -e staging bash

The error should catch this case and say exactly what is going on.

Create endpoint --public at the end does not make it public

Context

If you create an endpoint and mark it as public after the endpoint name, it comes back as Public: false.

PEBKAC, but no reason we should not be able to pass to the end. Seems like a urfave/cli issue maybe?

bcn endpoint create --district=hello --public something makes it public

but

bcn endpoint create --district=hello something --public does not

Perhaps we should add an error if the c.Args() has a length of more than 1 so the user realizes this.

How to test

  1. bcn endpoint create --district=hello something --public
  2. Observe that it returns Public: false but should return true.

Vault token auto-refresh

Vault token expires in a certain period (1 month by default). This is a good security feature but not very useful for bcn users. To avoid sudden expiration, we can implement auto-refresh as follows.

  • Every time bcn command executed, the bcn cli calls Vault API to generate a new token by using the existing vault token
  • bcn stores the new token

This way only users who haven't used bcn for a month get expired

About default environment

I was bored to type -e production every time.
I'd like to omit the option like Heroku 😄

e,g,

bcn run rails c # it same as "bcn run -e production rails c"

What do you think ❓ @k2nr

add `ci deploy` command

Currently we use bcnd which eventually executes bcn command. In our case bcn in CI environment is still the node version. Since we've used bcnd for a year and the workflow has worked very well, I think it's time to make bcnd a part of bcn. As an initial developement we only need to implement bcn ci deploy which works the same as bcnd. we've had some error handling issues of bcnd which I think will be fixed when bcnd and bcn are merged

bcn deploy should be quiet by default

The command bcn deploy should be quiet by default so it does not splay application secrets all over a CI especially when the CI runner output is public.

This should probably apply to all ShowHeritage except for bcn app show

.bcn directory is not found at first login

Thanks!
I tried the client, and on the first login .bcn directory was not found.
After I did mkdir ~/.bcn it works.

$ bcn login https://barcelona.degica.com
Create new GitHub access token with read:org permission here https://github.com/settings/tokens/new
GitHub Token: 
open /home/takeshi/.bcn/login: no such file or directory

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.