Nushell plugin for interacting with D-Bus

version 0.11.0: for nushell 0.98.0 (#4)

Bump the version to 0.11.0 and change `usage` to `description` due to
https://github.com/nushell/nushell/pull/13598

Co-authored-by: Canvis-Me <canvis@zfd.mechot.canvis>

authored by

Canvis-Me
Canvis-Me
and committed by
GitHub
02bff915 eabf21dd

+60 -74
+47 -61
Cargo.lock
··· 89 89 checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" 90 90 91 91 [[package]] 92 - name = "bincode" 93 - version = "1.3.3" 94 - source = "registry+https://github.com/rust-lang/crates.io-index" 95 - checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" 96 - dependencies = [ 97 - "serde", 98 - ] 99 - 100 - [[package]] 101 92 name = "bindgen" 102 93 version = "0.69.4" 103 94 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 106 97 "bitflags", 107 98 "cexpr", 108 99 "clang-sys", 109 - "itertools", 100 + "itertools 0.12.1", 110 101 "lazy_static", 111 102 "lazycell", 112 103 "proc-macro2", ··· 157 148 checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" 158 149 dependencies = [ 159 150 "borsh-derive", 160 - "cfg_aliases 0.2.1", 151 + "cfg_aliases", 161 152 ] 162 153 163 154 [[package]] ··· 269 260 270 261 [[package]] 271 262 name = "cfg_aliases" 272 - version = "0.1.1" 273 - source = "registry+https://github.com/rust-lang/crates.io-index" 274 - checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" 275 - 276 - [[package]] 277 - name = "cfg_aliases" 278 263 version = "0.2.1" 279 264 source = "registry+https://github.com/rust-lang/crates.io-index" 280 265 checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" ··· 314 299 ] 315 300 316 301 [[package]] 317 - name = "convert_case" 318 - version = "0.6.0" 319 - source = "registry+https://github.com/rust-lang/crates.io-index" 320 - checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" 321 - dependencies = [ 322 - "unicode-segmentation", 323 - ] 324 - 325 - [[package]] 326 302 name = "core-foundation-sys" 327 303 version = "0.8.6" 328 304 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 505 481 ] 506 482 507 483 [[package]] 484 + name = "heck" 485 + version = "0.5.0" 486 + source = "registry+https://github.com/rust-lang/crates.io-index" 487 + checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 488 + 489 + [[package]] 508 490 name = "hex" 509 491 version = "0.4.3" 510 492 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 535 517 536 518 [[package]] 537 519 name = "indexmap" 538 - version = "2.4.0" 520 + version = "2.5.0" 539 521 source = "registry+https://github.com/rust-lang/crates.io-index" 540 - checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" 522 + checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" 541 523 dependencies = [ 542 524 "equivalent", 543 525 "hashbrown 0.14.5", ··· 578 560 ] 579 561 580 562 [[package]] 563 + name = "itertools" 564 + version = "0.13.0" 565 + source = "registry+https://github.com/rust-lang/crates.io-index" 566 + checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" 567 + dependencies = [ 568 + "either", 569 + ] 570 + 571 + [[package]] 581 572 name = "itoa" 582 573 version = "1.0.11" 583 574 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 741 732 742 733 [[package]] 743 734 name = "nix" 744 - version = "0.28.0" 735 + version = "0.29.0" 745 736 source = "registry+https://github.com/rust-lang/crates.io-index" 746 - checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" 737 + checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" 747 738 dependencies = [ 748 739 "bitflags", 749 740 "cfg-if", 750 - "cfg_aliases 0.1.1", 741 + "cfg_aliases", 751 742 "libc", 752 743 ] 753 744 ··· 781 772 782 773 [[package]] 783 774 name = "nu-derive-value" 784 - version = "0.97.1" 775 + version = "0.98.0" 785 776 source = "registry+https://github.com/rust-lang/crates.io-index" 786 - checksum = "4e4640556d6abc057dab7001bf5612f6b9b144ce739bfa0669d66fbf1ef7ad28" 777 + checksum = "1f2619f3ae9a21794cf4c49c2962c3e5274764d87a3e0d97587283796ae4b99a" 787 778 dependencies = [ 788 - "convert_case", 779 + "heck", 789 780 "proc-macro-error", 790 781 "proc-macro2", 791 782 "quote", ··· 794 785 795 786 [[package]] 796 787 name = "nu-engine" 797 - version = "0.97.1" 788 + version = "0.98.0" 798 789 source = "registry+https://github.com/rust-lang/crates.io-index" 799 - checksum = "aa524164c6d87d9ce4dd1122525a539f92a77f4fbb6494452976cc2fa691742d" 790 + checksum = "1fab89403670cb3048f531ff8ac8d9cdfd9ac72862f9031194756d82729f9d8e" 800 791 dependencies = [ 801 792 "log", 802 793 "nu-glob", ··· 808 799 809 800 [[package]] 810 801 name = "nu-glob" 811 - version = "0.97.1" 802 + version = "0.98.0" 812 803 source = "registry+https://github.com/rust-lang/crates.io-index" 813 - checksum = "f4097b0014c26a039018990a4fe8d8fd5658c00e94621b34751869649b0aa942" 804 + checksum = "8f2367837197545cca98329358342d08498a5cfc0911d446debb35e3bbc5b44a" 814 805 815 806 [[package]] 816 807 name = "nu-path" 817 - version = "0.97.1" 808 + version = "0.98.0" 818 809 source = "registry+https://github.com/rust-lang/crates.io-index" 819 - checksum = "96b4a7d68a196e55c8e2c8685293bc1c17e9c13aa7dac5bcbe04a2a841e92770" 810 + checksum = "08fdfbc5a5f6f86b21b3035dc8043b09543ecf4d505010df99b35231abeb9d44" 820 811 dependencies = [ 821 812 "dirs", 822 813 "omnipath", ··· 825 816 826 817 [[package]] 827 818 name = "nu-plugin" 828 - version = "0.97.1" 819 + version = "0.98.0" 829 820 source = "registry+https://github.com/rust-lang/crates.io-index" 830 - checksum = "a6b2c69b4b0963fa2d1312a5df115a35b0f523e54b95d013eec87791806ff11d" 821 + checksum = "b17233bbf5c41a478e35b8800c88cf9a53b9633346da138430a35ec8344ce7a6" 831 822 dependencies = [ 832 823 "log", 833 824 "nix", ··· 841 832 842 833 [[package]] 843 834 name = "nu-plugin-core" 844 - version = "0.97.1" 835 + version = "0.98.0" 845 836 source = "registry+https://github.com/rust-lang/crates.io-index" 846 - checksum = "3dddcc6ef62272eedaa18f7f004090781969b99c29d4973a4dac6e4ce4395097" 837 + checksum = "738b28a0c4ff5a24666b67f2b5c1bbc6fdc5007149a19a1f490b4827b8fa67ae" 847 838 dependencies = [ 848 839 "interprocess", 849 840 "log", ··· 857 848 858 849 [[package]] 859 850 name = "nu-plugin-protocol" 860 - version = "0.97.1" 851 + version = "0.98.0" 861 852 source = "registry+https://github.com/rust-lang/crates.io-index" 862 - checksum = "2716cc05722738406c1714c9788969dd10d75a3d4eddbf86b3ad423df1a5d74a" 853 + checksum = "8971280787b5f77749c4738cfaf71b429f7b44715ebc88d22a0bb133ee61f41b" 863 854 dependencies = [ 864 - "bincode", 865 855 "nu-protocol", 866 856 "nu-utils", 857 + "rmp-serde", 867 858 "semver", 868 859 "serde", 869 860 "typetag", ··· 871 862 872 863 [[package]] 873 864 name = "nu-protocol" 874 - version = "0.97.1" 865 + version = "0.98.0" 875 866 source = "registry+https://github.com/rust-lang/crates.io-index" 876 - checksum = "38ae5262aabe662ac1cc02a6e8d3fdb48fa8bb25c77be72d2e8a625a7c3e4812" 867 + checksum = "22d2b192c6f44b22bf6fadebe8cb4c0450c5f3a1ef0760b10a8a34d86a408d37" 877 868 dependencies = [ 878 869 "brotli", 879 870 "byte-unit", 871 + "bytes", 880 872 "chrono", 881 873 "chrono-humanize", 882 - "convert_case", 883 874 "dirs", 884 875 "dirs-sys", 885 876 "fancy-regex", 877 + "heck", 886 878 "indexmap", 887 879 "log", 888 880 "lru", ··· 903 895 904 896 [[package]] 905 897 name = "nu-system" 906 - version = "0.97.1" 898 + version = "0.98.0" 907 899 source = "registry+https://github.com/rust-lang/crates.io-index" 908 - checksum = "52ed001bb4cb39b4235871cb00650b79497084fc46beaf019d226239119d3ef5" 900 + checksum = "08076dc19b3b6b51721e70296f6ee50af46badad86fdbb3149dd39660140115c" 909 901 dependencies = [ 910 902 "chrono", 911 - "itertools", 903 + "itertools 0.13.0", 912 904 "libc", 913 905 "libproc", 914 906 "log", ··· 923 915 924 916 [[package]] 925 917 name = "nu-utils" 926 - version = "0.97.1" 918 + version = "0.98.0" 927 919 source = "registry+https://github.com/rust-lang/crates.io-index" 928 - checksum = "88d91a233afaa875d01784c898f4464755cbefb5eaf8845032d651e39ac6354f" 920 + checksum = "e5d17bc14c181cb42fadbacfecbd2a4d68912dd24e49278e428e585b7b4ec7f3" 929 921 dependencies = [ 930 922 "crossterm_winapi", 931 923 "log", ··· 1625 1617 version = "0.1.5" 1626 1618 source = "registry+https://github.com/rust-lang/crates.io-index" 1627 1619 checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" 1628 - 1629 - [[package]] 1630 - name = "unicode-segmentation" 1631 - version = "1.11.0" 1632 - source = "registry+https://github.com/rust-lang/crates.io-index" 1633 - checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" 1634 1620 1635 1621 [[package]] 1636 1622 name = "unicode-width"
+3 -3
Cargo.toml
··· 1 1 [package] 2 2 name = "nu_plugin_dbus" 3 - version = "0.10.0" 3 + version = "0.11.0" 4 4 edition = "2021" 5 5 6 6 description = "Nushell plugin for communicating with D-Bus" ··· 14 14 15 15 [dependencies] 16 16 dbus = "0.9.7" 17 - nu-plugin = "0.97.1" 18 - nu-protocol = { version = "0.97.1", features = ["plugin"] } 17 + nu-plugin = "0.98.0" 18 + nu-protocol = { version = "0.98.0", features = ["plugin"] } 19 19 serde = { version = "1.0.196", features = ["derive"] } 20 20 serde-xml-rs = "0.6.0"
+2 -2
src/commands/call.rs
··· 65 65 ) 66 66 } 67 67 68 - fn usage(&self) -> &str { 68 + fn description(&self) -> &str { 69 69 "Call a method and get its response" 70 70 } 71 71 72 - fn extra_usage(&self) -> &str { 72 + fn extra_description(&self) -> &str { 73 73 "Returns an array if the method call returns more than one value." 74 74 } 75 75
+1 -1
src/commands/get.rs
··· 41 41 ) 42 42 } 43 43 44 - fn usage(&self) -> &str { 44 + fn description(&self) -> &str { 45 45 "Get a D-Bus property" 46 46 } 47 47
+1 -1
src/commands/get_all.rs
··· 36 36 ) 37 37 } 38 38 39 - fn usage(&self) -> &str { 39 + fn description(&self) -> &str { 40 40 "Get all D-Bus properties for the given object" 41 41 } 42 42
+2 -2
src/commands/introspect.rs
··· 31 31 ) 32 32 } 33 33 34 - fn usage(&self) -> &str { 34 + fn description(&self) -> &str { 35 35 "Introspect a D-Bus object" 36 36 } 37 37 38 - fn extra_usage(&self) -> &str { 38 + fn extra_description(&self) -> &str { 39 39 "Returns information about available nodes, interfaces, methods, \ 40 40 signals, and properties on the given object path" 41 41 }
+2 -2
src/commands/list.rs
··· 25 25 ) 26 26 } 27 27 28 - fn usage(&self) -> &str { 28 + fn description(&self) -> &str { 29 29 "List all available connection names on the bus" 30 30 } 31 31 32 - fn extra_usage(&self) -> &str { 32 + fn extra_description(&self) -> &str { 33 33 "These can be used as arguments for --dest on any of the other commands." 34 34 } 35 35
+1 -1
src/commands/main.rs
··· 16 16 Signature::build(self.name()).dbus_command() 17 17 } 18 18 19 - fn usage(&self) -> &str { 19 + fn description(&self) -> &str { 20 20 "Commands for interacting with D-Bus" 21 21 } 22 22
+1 -1
src/commands/set.rs
··· 55 55 ) 56 56 } 57 57 58 - fn usage(&self) -> &str { 58 + fn description(&self) -> &str { 59 59 "Set a D-Bus property" 60 60 } 61 61