Giter Club home page Giter Club logo

mtxcli's Introduction

mtxcli

Matrix Command Line Interface

mtxcli

Status

This is a revised version of the mtxcli Matrix chat program. This version, 0.5.0 (and beyond), strives to be as simple as possible in order to prepare for running on the Xous operating system on the Betrusted (Precursor) hardware device.

The previous work used the tokio library for asynchronous communication, but became very complex (NOTE: that code is still available in the mtxcli-tokio branch).

This version will display any recent messages after you type a message to a given room. In this way the code flow is much easier to develop and debug for the Betrusted environment.

Prerequsites

Before using this program you should:

  1. Setup a new user (if needed) using the Matrix protocol
  2. Create a new room (if needed)
  3. Join the room

Usage

When you start using mtxcli you will need to set your user identifer, your password and the room you would like to join.

You can do this with commands that start with slash / (see the example below). NOTE: Type /help for a list of available commands.

Perhaps the easist way to explain using mtxcli is by example: (here I just typed Hello! to send a message to the room)

tmarble@espoir 996 :) cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/mtxcli`
/set user @info9net:matrix.org
/set password my-secret-password
/set room #toms-brewpub
Hello!
mtxcli> logging in...
mtxcli> logged in
tmarble> This is just a test room...
tmarble> to experiment with matrix chat
tmarble> Please join us!
info9net> Hello!
This is a test
info9net> Hello!
tmarble> Welcome info9net !
info9net> This is a test
Thank you!
info9net> Thank you!
/quit
tmarble@espoir 997 :)

Asciinema

View the terminal session in Asciinema!

NOTE: You will need to set your password

asciicast

Contribution Guidelines

Contributor Covenant

Please see CONTRIBUTING for details on how to make a contribution.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide its terms.

License

Copyright © 2020-2022

Licensed under the GPL-3.0 LICENSE

Acknowledgements

This project is supported in part by a grant from the NGI0 PET Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program.

nl.net+NGI0

mtxcli's People

Contributors

tmarble avatar

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.