Giter VIP home page Giter VIP logo

memphis-cli-old's People

Contributors

avitaltrifsik avatar elchinmemphis avatar idanasulinmemphis avatar orellazri avatar saarryan avatar shay23b avatar shohamroditimemphis avatar svetamemphis avatar valerabr avatar yanivbh1 avatar

Stargazers

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

Watchers

 avatar

memphis-cli-old's Issues

location of .memconfig is wrong

Hey,
The location of .memconfig at creation time should be constant, based on the OS of the user,
similar to .kubeconfig or .awscli.

AWS CLI config file for example -

Operating system Default location of files
Linux and macOS ~/.aws/config ~/.aws/credentials
Windows %USERPROFILE%.aws\config %USERPROFILE%.aws\credentials

If we save it where the terminal is currently at, in my use case it was inside a code repo, the user would then need to add it to .gitignore

Add output for both demo producer and consumer

Hey,
We need to show some sign for the user when running producer and consumer demo app, to explain the app is running and does what it suppose to do.

Example -

const memphis = require('memphis-dev');

(async function () {
    try {
        await memphis.connect({
            host: 'localhost',
            username: 'benchmark',
            connectionToken: 'AhrnKXq5UZSBafNNXGnj' //mem user add -u benchmark --type application
        });

        const producer = await memphis.producer({
            stationName: 'benchmark',
            producerName: 'demo_producer'
        });

        const promises = [];
        for (let index = 0; index < 100; index++){
            promises.push(
                producer.produce({
                    message: Buffer.from(`Message #${index}: Hello world`)
                })
            );
            console.log("Message sent");
        }
        await Promise.all(promises);
        console.log("All messages sent");
        memphis.close();
    } catch (ex) {
        console.log(ex);
        memphis.close();
    }
})();

mem station create

when creating a station it changes to lower case for example create myStation becomes mystation and when you want to delete it you can't delete myStation only mystation

Usage syntax change

Hey,
Please change the following

 $ mem user add -u fastmart
Password is required for user of type management. Use command:
mem user add --username <username> --password <user-password> --type management

To

 $ mem user add -u fastmart
Password is required for user of type management. Use command:
mem user add --username <username> [--password <password>] --type management/application

Password is not required for the type 'application' and therefore should be inside []

Username parameter alignment

Username parameter is not the same in section "Connect" and "User".

When you try to connect to control plane you need to use "-u, --user" for username, and in the "User" section its "-n, --name ".

Example:
Connect:
$ mem connect -u root -p memphis -s http://localhost:5555
User:
$ mem user add --name shay --password 123456

In my opinion "-u, --user" is more intuitive and user-friendly option.

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.