Discussion:
[libvirt-users] Hello World
Ameya Sinha
2018-11-05 14:07:17 UTC
Permalink
Hello Everyone!

I'm Ameya Sinha, a student, and I wanted to contribute to the
libvirt organization. I have read through the contributing guidelines (
https://libvirt.org/contribute.html) and contributor guidelines (
https://libvirt.org/hacking.html). Can someone suggest how should I
proceed from here?

Thank You,
Ameya Sinha
Erik Skultety
2018-11-05 14:33:32 UTC
Permalink
Post by Ameya Sinha
Hello Everyone!
I'm Ameya Sinha, a student, and I wanted to contribute to the
libvirt organization. I have read through the contributing guidelines (
https://libvirt.org/contribute.html) and contributor guidelines (
https://libvirt.org/hacking.html). Can someone suggest how should I
proceed from here?
Welcome!

We created a wiki page for this purpose [1] with small tasks which ought to
help new contributors to get going and also get familiar with libvirt a bit
more along the way.

[1] https://wiki.libvirt.org/page/BiteSizedTasks

Regards,
Erik
Michal Privoznik
2018-11-05 16:52:12 UTC
Permalink
Post by Ameya Sinha
Hello Everyone!
I'm Ameya Sinha, a student, and I wanted to contribute to the
libvirt organization. I have read through the contributing guidelines (
https://libvirt.org/contribute.html) and contributor guidelines (
https://libvirt.org/hacking.html). Can someone suggest how should I
proceed from here?
Welcome!

It's always nice to see people interested in libvirt. Besides what Erik
wrote I can suggest writing completers. But that depends what your area
of interest is.

Completers are small functions that are called from virsh whenever user
started typing something and hit TAB TAB. Their purpose is to offer list
of strings that suit entered input. If there is only one item on the
list then it's entered in automatically. For instance:

virsh # dom<TAB><TAB>
domblkerror domblkstat domcontrol domfsinfo ..

virsh # start --domain <TAB><TAB>
fedora fedora.i686 freebsd gentoo ...

(this will vary depending on your domains intalled)


The framework is merged, the only thing that is missing are these small
functions (called callbacks) that are called by the framework at
appropriate times. For instance: virshDomainNameCompleter() is called
whenever a domain name is to be completed (just like we've seen for
virsh start example).


I find writing completers to be a nice introduction into libvirt because
they use our public APIs therefore one gets sense of libvirt. But feel
free to chose anything, I'm just putting it out there.


Michal

Continue reading on narkive:
Loading...